Skip to content
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 1 changed file with 1 addition and 0 deletions.
@@ -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.