SCP: Fix Coverity identified memory leak in error expression evaluation path

This commit is contained in:
Mark Pizzolato 2018-05-05 17:59:57 -07:00
parent f5f4c96ccd
commit 245a85d79e

1
scp.c
View file

@ -13823,6 +13823,7 @@ while (!isempty_Stack(stack2)) {
if (!pop_Stack (stack1, item1, &op1)) { if (!pop_Stack (stack1, item1, &op1)) {
*stat = SCPE_INVEXPR; *stat = SCPE_INVEXPR;
delete_Stack (stack2);
return 0; return 0;
} }
if (temp_op->unary) if (temp_op->unary)