Permalink
Browse files

codegen_scope should not keep old iseq ptr from irep

  • Loading branch information...
matz committed Nov 23, 2016
1 parent bfbc6b9 commit 669bbc70b0553b68483c8d7eff8c31a602f283e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-compiler/core/codegen.c
@@ -2713,7 +2713,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
p->icapa = 1024;
p->iseq = (mrb_code*)mrb_malloc(mrb, sizeof(mrb_code)*p->icapa);
p->irep->iseq = p->iseq;
p->irep->iseq = NULL;
p->pcapa = 32;
p->irep->pool = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value)*p->pcapa);

0 comments on commit 669bbc7

Please sign in to comment.