Fix memory leak on evaluation error
This commit is contained in:
parent
567c3d8dc2
commit
706f452d9d
3
ell.c
3
ell.c
|
@ -853,6 +853,9 @@ execute_statement
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item_free_list (*result);
|
||||||
|
*result = NULL;
|
||||||
|
|
||||||
// In that case, `error' is NULL and there's nothing else to do anyway
|
// In that case, `error' is NULL and there's nothing else to do anyway
|
||||||
if (!ctx->memory_failure) {
|
if (!ctx->memory_failure) {
|
||||||
// This creates some form of a stack trace
|
// This creates some form of a stack trace
|
||||||
|
|
Loading…
Reference in New Issue