Skip to content

Commit 669bbc7

Browse files
committed
codegen_scope should not keep old iseq ptr from irep
1 parent bfbc6b9 commit 669bbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mrbgems/mruby-compiler/core/codegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
27132713

27142714
p->icapa = 1024;
27152715
p->iseq = (mrb_code*)mrb_malloc(mrb, sizeof(mrb_code)*p->icapa);
2716-
p->irep->iseq = p->iseq;
2716+
p->irep->iseq = NULL;
27172717

27182718
p->pcapa = 32;
27192719
p->irep->pool = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value)*p->pcapa);

0 commit comments

Comments
 (0)