Permalink
Browse files

Fix memory leak; ref #3378

The fix was proposed by @titanous
  • Loading branch information...
matz committed Jan 23, 2017
1 parent ffb5e5a commit 3ce82603a56f2b9480e2bd889dd98f813b868757
Showing with 1 addition and 0 deletions.
  1. +1 −0 mrbgems/mruby-compiler/core/codegen.c
@@ -93,6 +93,7 @@ codegen_error(codegen_scope *s, const char *message)
if (!s) return;
while (s->prev) {
codegen_scope *tmp = s->prev;
mrb_free(s->mrb, s->iseq);
mrb_pool_close(s->mpool);
s = tmp;
}

0 comments on commit 3ce8260

Please sign in to comment.