call grammar_alloc_free() to fix memleaks
authorBrian <brian@yutani.localnet.net>
Fri, 20 Apr 2007 18:59:26 +0000 (12:59 -0600)
committerBrian <brian@yutani.localnet.net>
Sat, 21 Apr 2007 16:05:05 +0000 (10:05 -0600)
src/mesa/shader/slang/slang_preprocess.c

index 66a6a98..72281ed 100644 (file)
@@ -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;
 }