mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 22:00:37 +02:00
call grammar_alloc_free() to fix memleaks
This commit is contained in:
parent
bc74cb4c0a
commit
d5e7234ba8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue