Module: Mesa Branch: master Commit: 7f952eb9314488a37f76a123067ba6b71b91ae88 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f952eb9314488a37f76a123067ba6b71b91ae88
Author: Samuel Pitoiset <[email protected]> Date: Fri Sep 1 14:07:43 2017 +0200 radv: fix a memleak when compiling the GS copy shader Found by inspection. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> --- 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 f2d1b491b7..c090b8e2f0 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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
