Release the bytecode container and make sure the 'finally' block will not be executed anymore.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-06-04 19:53:39 +02:00
parent 101453950e
commit 384b057c93
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions

View File

@ -8236,6 +8236,8 @@ static sxi32 VmThrowException(
/* Execute the 'finally' block if available */ /* Execute the 'finally' block if available */
if(pException && SySetUsed(&pException->sFinally)) { if(pException && SySetUsed(&pException->sFinally)) {
rc = VmExecFinallyBlock(&(*pVm), pException); rc = VmExecFinallyBlock(&(*pVm), pException);
/* Release the bytecode container */
SySetRelease(&pException->sFinally);
} }
/* No matching 'catch' block found */ /* No matching 'catch' block found */
if(pCatch == 0) { if(pCatch == 0) {