From: Ilia Mirkin Date: Sun, 17 May 2015 21:32:24 +0000 (-0400) Subject: st/mesa: don't leak glsl_to_tgsi object on link failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb973723a5e1f27817b6be2c2fa4fb3ea28e733c;p=mesa.git st/mesa: don't leak glsl_to_tgsi object on link failure Signed-off-by: Ilia Mirkin Reviewed-by: Kenneth Graunke Cc: "10.5 10.6" --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index f0f2a77d065..719d08145ea 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5549,6 +5549,7 @@ get_mesa_program(struct gl_context *ctx, */ _mesa_associate_uniform_storage(ctx, shader_program, prog->Parameters); if (!shader_program->LinkStatus) { + free_glsl_to_tgsi_visitor(v); return NULL; }