summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm.c b/src/vm.c
index 88ad3349a..5a472c1e2 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1338,6 +1338,7 @@ RETRY_TRY_BLOCK:
pc = pc + 1;
for (n=0; n<a; n++) {
proc = mrb->c->ensure[epos+n];
+ mrb->c->ensure[epos+n] = NULL;
irep = proc->body.irep;
ci = cipush(mrb);
ci->mid = ci[-1].mid;