Fix memory leak; ref #3378

The fix was proposed by @titanous
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-01-23 16:48:18 +09:00
parent ffb5e5ab08
commit 3ce82603a5
+1
View File
@@ -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;
}