diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-03 02:15:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-03 08:24:47 +0900 |
| commit | d489b41c31361844ee4715c1aac54f3f0b353995 (patch) | |
| tree | b54434c6819c8ba5c5445fc5e5ce923122343146 | |
| parent | e4662d77e75de4cc6d8e98e56bb0395cbbedbaf7 (diff) | |
| download | mruby-d489b41c31361844ee4715c1aac54f3f0b353995.tar.gz mruby-d489b41c31361844ee4715c1aac54f3f0b353995.zip | |
Reduce memory leaks from `mirb`.
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 3feb4270a..7e5fd392f 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -584,6 +584,8 @@ done: mrb_free(mrb, history_path); #endif + if (args.rfp) fclose(args.rfp); + mrb_free(mrb, args.argv); mrbc_context_free(mrb, cxt); mrb_close(mrb); |
