[Mesa-dev] [PATCH] radv: fix resource leak in radv_amdgpu_ctx_create

Edward O'Callaghan funfunctor at folklore1984.net
Mon Dec 5 09:16:01 UTC 2016


Reviewed-by: Edward O'Callaghan <funfunctor at folkore1984.net>

On 12/05/2016 04:45 AM, Nayan Deshmukh wrote:
> CovID: 1396387
> 
> Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>
> ---
>  src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
> index b8558fa..08abb9d 100644
> --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
> +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
> @@ -742,6 +742,7 @@ static struct radeon_winsys_ctx *radv_amdgpu_ctx_create(struct radeon_winsys *_w
>  	ctx->ws = ws;
>  	return (struct radeon_winsys_ctx *)ctx;
>  error_create:
> +        FREE(ctx);
>  	return NULL;
>  }
>  
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161205/3e6b589c/attachment.sig>


More information about the mesa-dev mailing list