call grammar_alloc_free() to fix memleaks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user