From 384b057c933aab051a17ffd5d7be99a5830447de Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 4 Jun 2019 19:53:39 +0200 Subject: [PATCH] Release the bytecode container and make sure the 'finally' block will not be executed anymore. --- engine/vm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/vm.c b/engine/vm.c index fcbe212..6bcd636 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -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) {