Clear ensure stack after calling in OP_EPOP; #3855 3856

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-11-22 12:22:45 +09:00
parent 4665b07f7b
commit fbafa78098
+1
View File
@@ -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;