SCP: Fix Coverity identified memory leak in error expression evaluation path
This commit is contained in:
parent
f5f4c96ccd
commit
245a85d79e
1 changed files with 1 additions and 0 deletions
1
scp.c
1
scp.c
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue