summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 2c8f524..65d6c81 100644
--- a/vm.c
+++ b/vm.c
@@ -2278,6 +2278,8 @@ uc_vm_execute_chunk(uc_vm_t *vm)
while (!uc_vm_handle_exception(vm)) {
/* no further callframe to pop, report unhandled exception and terminate */
if (vm->callframes.count <= 1) {
+ uc_vm_reset_callframes(vm);
+
if (vm->exhandler)
vm->exhandler(vm, &vm->exception);