summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-20 12:59:26 -0600
committerBrian <brian@yutani.localnet.net>2007-04-21 10:05:05 -0600
commitd5e7234ba80c59505838c67c92501fa7cfde0b66 (patch)
tree3e884dc057db80ad75fcd22353635e7ad324d8bb /src/mesa/shader
parentbc74cb4c0ae6210eab403ee879492fc19644b3f2 (diff)
call grammar_alloc_free() to fix memleaks
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_preprocess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c
index 66a6a98392..72281eda57 100644
--- a/src/mesa/shader/slang/slang_preprocess.c
+++ b/src/mesa/shader/slang/slang_preprocess.c
@@ -1138,10 +1138,12 @@ preprocess_source (slang_string *output, const char *source, grammar pid, gramma
goto error;
}
+ grammar_alloc_free(prod);
pp_state_free (&state);
return GL_TRUE;
error:
+ grammar_alloc_free(prod);
pp_state_free (&state);
return GL_FALSE;
}