Permalink
Browse files

Clear VM stack in OP_EXEC; ref #3678

  • Loading branch information...
matz committed May 31, 2017
1 parent eb69eeb commit b0f2bc39db0bef62f87129db604e16608818e24f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/vm.c
View
@@ -2630,6 +2630,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
pool = irep->pool;
syms = irep->syms;
stack_extend(mrb, irep->nregs);
stack_clear(regs+1, irep->nregs-1);
ci->nregs = irep->nregs;
pc = irep->iseq;
JUMP;

0 comments on commit b0f2bc3

Please sign in to comment.