From 245a85d79e4991210ef3448598354d2369fa8e31 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 5 May 2018 17:59:57 -0700 Subject: [PATCH] SCP: Fix Coverity identified memory leak in error expression evaluation path --- scp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scp.c b/scp.c index 5c19525f..3ab58051 100644 --- a/scp.c +++ b/scp.c @@ -13823,6 +13823,7 @@ while (!isempty_Stack(stack2)) { if (!pop_Stack (stack1, item1, &op1)) { *stat = SCPE_INVEXPR; + delete_Stack (stack2); return 0; } if (temp_op->unary)