diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-08 11:10:57 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-08 11:10:57 -0700 |
| commit | a0f2e6009c5abd81e1d69683e35fdcbb26453be3 (patch) | |
| tree | 82bc8ca98d83ea31a0575ad070f3da5ef644b75e | |
| parent | 5dea19e9be5d05553df18a5e022911da83fcccbc (diff) | |
| parent | 22f50fe32e0f86ef8bbcde733163fefed21059d4 (diff) | |
| download | mruby-a0f2e6009c5abd81e1d69683e35fdcbb26453be3.tar.gz mruby-a0f2e6009c5abd81e1d69683e35fdcbb26453be3.zip | |
Merge pull request #1161 from h2so5/fix-memory-leak-in-mirb
Fix a memory leak in mirb
| -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); |
