diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-04-04 15:44:49 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-04 15:44:49 +0900 |
| commit | f23c3cddc89d24430f8a8c6f44cdab4ecfe2d55d (patch) | |
| tree | 8c1c230c24a888d2f1c6edec6fc5fcb68df430a9 /mrbgems/mruby-bin-debugger/tools/mrdb | |
| parent | 951ebbafdce2828a4ac539fe2e2342fbb378e999 (diff) | |
| parent | e57d9e60472ff5f7119a461bea8724e396072ba5 (diff) | |
| download | mruby-f23c3cddc89d24430f8a8c6f44cdab4ecfe2d55d.tar.gz mruby-f23c3cddc89d24430f8a8c6f44cdab4ecfe2d55d.zip | |
Merge pull request #3990 from mimaki/fix-mrdb-illegal-free
Fixed memory failure on mruby debugger.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c index a9c895b55..c8700530f 100644 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c @@ -21,7 +21,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size c = mrbc_context_new(mrb); c->no_exec = TRUE; c->capture_errors = TRUE; - c->filename = (char*)dbg->prvfile; + mrbc_filename(mrb, c, (const char*)dbg->prvfile); c->lineno = dbg->prvline; /* Load program */ |
