From d5e7234ba80c59505838c67c92501fa7cfde0b66 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 20 Apr 2007 12:59:26 -0600 Subject: [PATCH] call grammar_alloc_free() to fix memleaks --- src/mesa/shader/slang/slang_preprocess.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c index 66a6a983927..72281eda57d 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; } -- 2.30.2