mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fix memleak in cmd_export
This commit is contained in:
parent
6d17b36605
commit
62eedb1cd5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user