From: Brian Paul Date: Thu, 1 Oct 2009 20:50:45 +0000 (-0600) Subject: glsl: fix mem leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b27a0d063402e709ebc588aa3d927d461b96755;p=mesa.git glsl: fix mem leak --- diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index 8f2b40d5dfb..71038d2d94e 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -670,6 +670,7 @@ get_main_shader(GLcontext *ctx, !shader->Main || shader->UnresolvedRefs) { link_error(shProg, "Unresolved symbols"); + _mesa_free_shader(ctx, shader); return NULL; } }