From a232dc60844cb9136f223b871280653caedc989d Mon Sep 17 00:00:00 2001 From: cremno Date: Thu, 20 Nov 2014 01:15:27 +0100 Subject: free return value of dirname() --- mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3