From 7f952eb9314488a37f76a123067ba6b71b91ae88 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 1 Sep 2017 14:07:43 +0200 Subject: [PATCH] radv: fix a memleak when compiling the GS copy shader Found by inspection. Signed-off-by: Samuel Pitoiset Reviewed-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_pipeline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index f2d1b491b70..c090b8e2f0e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -618,6 +618,8 @@ radv_pipeline_compile(struct radv_pipeline *pipeline, gs_copy_code, gs_copy_code_size); } + + free(gs_copy_code); } if (!module->nir) ralloc_free(nir); -- 2.30.2