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

Nayan Deshmukh nayan26deshmukh at gmail.com
Sun Dec 4 17:45:38 UTC 2016


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;
 }
 
-- 
2.9.3



More information about the mesa-dev mailing list