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 66a6a983927d9bcd4acdc25cf2a45c4fe8e9269a..72281eda57de9db59fd2aa9163898a95aabbbf4d 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;
 }