fixed minor memory leak in cparse

we keep track of internal values used by the parser by pushing them onto the stack
and popping them off once complete.
This commit is contained in:
2023-08-29 15:27:22 -05:00
committed by cpunch
parent 0633e87aa6
commit 7fa7eb8d94
2 changed files with 14 additions and 2 deletions

View File

@@ -57,7 +57,6 @@ COSMO_API bool cosmoV_undump(CState *state, cosmo_Reader reader, const void *ud)
COSMO_API bool cosmoV_compileString(CState *state, const char *src, const char *name)
{
CObjFunction *func;
CPanic *panic = cosmoV_newPanic(state);
if (cosmoV_protect(panic)) {