diff options
-rw-r--r-- | src/command/cmd_funcs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 0219b61f..be469c28 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -1101,6 +1101,7 @@ cmd_export(ProfWin* window, const char* const command, gchar** args) char* path = get_expanded_path(args[0]); fd = open(path, O_WRONLY | O_CREAT, 00600); + free(path); if (-1 == fd) { cons_show("error: cannot open %s: %s", args[0], strerror(errno)); |