Browse Source

Release the bytecode container and make sure the 'finally' block will not be executed anymore.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
384b057c93
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      engine/vm.c

+ 2
- 0
engine/vm.c View File

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

Loading…
Cancel
Save