Deallocate `s->lines` in `codegen_error`; ref #4370

parent 00545fc5
...@@ -102,6 +102,7 @@ codegen_error(codegen_scope *s, const char *message) ...@@ -102,6 +102,7 @@ codegen_error(codegen_scope *s, const char *message)
while (s->prev) { while (s->prev) {
codegen_scope *tmp = s->prev; codegen_scope *tmp = s->prev;
mrb_free(s->mrb, s->iseq); mrb_free(s->mrb, s->iseq);
mrb_free(s->mrb, s->lines);
mrb_pool_close(s->mpool); mrb_pool_close(s->mpool);
s = tmp; s = tmp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment