summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-01 14:50:45 -0600
committerBrian Paul <brianp@vmware.com>2009-10-01 14:50:45 -0600
commit9b27a0d063402e709ebc588aa3d927d461b96755 (patch)
treef4a275f25e930e07fc958a8ce0b179ce6bebf4b4 /src/mesa/shader
parentb3e41e0d5e03b040768547293e05e6540d3c8e4d (diff)
glsl: fix mem leak
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 8f2b40d5df..71038d2d94 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;
}
}