Merge pull request #1161 from h2so5/fix-memory-leak-in-mirb

Fix a memory leak in mirb
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-08 11:10:57 -07:00
+1 -1
View File
@@ -337,9 +337,9 @@ main(int argc, char **argv)
}
ruby_code[0] = '\0';
last_code_line[0] = '\0';
mrb_parser_free(parser);
mrb_gc_arena_restore(mrb, ai);
}
mrb_parser_free(parser);
}
mrbc_context_free(mrb, cxt);
mrb_close(mrb);