Commit a0f2e600 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

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

Fix a memory leak in mirb
parents 5dea19e9 22f50fe3
......@@ -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);
......
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