From: Samuel Pitoiset Date: Fri, 1 Sep 2017 12:07:43 +0000 (+0200) Subject: radv: fix a memleak when compiling the GS copy shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f952eb9314488a37f76a123067ba6b71b91ae88;p=mesa.git 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 --- 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);