Fix memory leak on evaluation error

This commit is contained in:
Přemysl Eric Janouch 2017-05-21 08:28:45 +02:00
parent 567c3d8dc2
commit 706f452d9d
Signed by: p
GPG Key ID: B715679E3A361BE6

3
ell.c
View File

@ -853,6 +853,9 @@ execute_statement
return true;
}
item_free_list (*result);
*result = NULL;
// In that case, `error' is NULL and there's nothing else to do anyway
if (!ctx->memory_failure) {
// This creates some form of a stack trace