From 706f452d9ddc180cf2fdaf9814778ee818661ee4 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 21 May 2017 08:28:45 +0200 Subject: Fix memory leak on evaluation error --- ell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ell.c b/ell.c index 6becbe9..bdbc6fb 100755 --- a/ell.c +++ b/ell.c @@ -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 -- cgit v1.2.3-70-g09d2