diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-02-24 12:02:13 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2022-02-24 12:02:13 +0100 |
commit | 62eedb1cd592e18a3bf6ac185ae86257233a12cc (patch) | |
tree | bd52f812ee0b0d5c3821db4a2d3cb0f588ee0619 | |
parent | 6d17b36605292a0eda148178677f72819c80b6fe (diff) | |
download | profani-tty-62eedb1cd592e18a3bf6ac185ae86257233a12cc.tar.gz |
Fix memleak in cmd_export
-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)); |