call grammar_alloc_free() to fix memleaks

This commit is contained in:
Brian 2007-04-20 12:59:26 -06:00
parent bc74cb4c0a
commit d5e7234ba8

View 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;
}