Commit a232dc60 authored by cremno's avatar cremno

free return value of dirname()

parent 88195a7c
...@@ -196,6 +196,9 @@ mrb_debug_get_source(mrb_state *mrb, mrdb_state *mrdb, const char *srcpath, cons ...@@ -196,6 +196,9 @@ mrb_debug_get_source(mrb_state *mrb, mrdb_state *mrdb, const char *srcpath, cons
fclose(fp); fclose(fp);
break; break;
} }
mrb_free(mrb, (void *)search_path[1]);
return path; return path;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment