diff options
| author | h2so5 <[email protected]> | 2013-04-08 23:38:01 +0900 |
|---|---|---|
| committer | h2so5 <[email protected]> | 2013-04-08 23:38:01 +0900 |
| commit | 22f50fe32e0f86ef8bbcde733163fefed21059d4 (patch) | |
| tree | 82bc8ca98d83ea31a0575ad070f3da5ef644b75e /tools | |
| parent | 5dea19e9be5d05553df18a5e022911da83fcccbc (diff) | |
| download | mruby-22f50fe32e0f86ef8bbcde733163fefed21059d4.tar.gz mruby-22f50fe32e0f86ef8bbcde733163fefed21059d4.zip | |
Fix a memory leak in mirb
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mirb/mirb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 044d95faa..4872c474a 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -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); |
