diff options
| author | cremno <[email protected]> | 2014-11-20 00:55:46 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-11-20 00:55:46 +0100 |
| commit | 83c48ff9660f84d4fa8815a395f28d6fbc485e0b (patch) | |
| tree | 70edf7f56bd96f0ff70aad3c99fdfef1b2eb2166 /mrbgems/mruby-bin-debugger | |
| parent | 88195a7c99b910ef81f64b29149d3246092e3a52 (diff) | |
| download | mruby-83c48ff9660f84d4fa8815a395f28d6fbc485e0b.tar.gz mruby-83c48ff9660f84d4fa8815a395f28d6fbc485e0b.zip | |
fix heap-use-after-free
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c index b8d62ac07..74e10ab5a 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c @@ -411,11 +411,11 @@ dbgcmd_list(mrb_state *mrb, mrdb_state *mrdb) filename = st->filename; } mrb_debug_list(mrb, mrdb->dbg, filename, st->line_min, st->line_max); - listcmd_parser_state_free(mrb, st); if (filename != NULL && filename != st->filename) { mrb_free(mrb, filename); } + listcmd_parser_state_free(mrb, st); } return DBGST_PROMPT; |
