From: Brian Date: Fri, 20 Apr 2007 18:59:26 +0000 (-0600) Subject: call grammar_alloc_free() to fix memleaks X-Git-Tag: mesa-7.8~6068 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5e7234ba80c59505838c67c92501fa7cfde0b66;p=platform%2Fupstream%2Fmesa.git call grammar_alloc_free() to fix memleaks --- diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c index 66a6a98..72281ed 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; }