summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/winsys
diff options
context:
space:
mode:
authorNayan Deshmukh <[email protected]>2016-12-04 23:15:38 +0530
committerEdward O'Callaghan <[email protected]>2016-12-06 11:49:01 +1100
commit3015a23fe0eab17cde163b1de141f75c2f6410e4 (patch)
tree33948b557ca45fc27efb329e404b2a0ad190d077 /src/amd/vulkan/winsys
parent5338fb34d6af656adaf0c80d57b5a6168f81d3e1 (diff)
radv: fix resource leak in radv_amdgpu_ctx_create
CovID: 1396387 V2. Fixup bad whitespace. Signed-off-by: Nayan Deshmukh <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/amd/vulkan/winsys')
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
index b8558fafc02..4f3ce70e74a 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;
}