Commit 60521699 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

fix a memory leak

parent b280852f
......@@ -3415,7 +3415,9 @@ cmd_open(int argc, char** argv)
filepath = g_string_append(filepath, argv[i]);
}
return open_file(filepath->str, NULL);
gboolean res = open_file(filepath->str, NULL);
g_string_free(filepath, TRUE);
return res;
}
gboolean
......
Supports Markdown
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