diff options
| author | cremno <[email protected]> | 2014-11-20 01:15:27 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-11-20 01:15:27 +0100 |
| commit | a232dc60844cb9136f223b871280653caedc989d (patch) | |
| tree | a164ac6e88407beb2ca88101b3ad198eba27b44b | |
| parent | 88195a7c99b910ef81f64b29149d3246092e3a52 (diff) | |
| download | mruby-a232dc60844cb9136f223b871280653caedc989d.tar.gz mruby-a232dc60844cb9136f223b871280653caedc989d.zip | |
free return value of dirname()
| -rwxr-xr-x | mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c index 53f5fe4ef..cddcab270 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c @@ -196,6 +196,9 @@ mrb_debug_get_source(mrb_state *mrb, mrdb_state *mrdb, const char *srcpath, cons fclose(fp); break; } + + mrb_free(mrb, (void *)search_path[1]); + return path; } |
