mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(execute_menu_command): fix memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
ded5d37ff0
commit
f657d92e52
@ -480,6 +480,7 @@ execute_menu_command (const WEdit * edit_widget, const char *commands, gboolean
|
||||
if (parameter == NULL || *parameter == '\0')
|
||||
{
|
||||
/* User canceled */
|
||||
g_free (parameter);
|
||||
fclose (cmd_file);
|
||||
mc_unlink (file_name_vpath);
|
||||
vfs_path_free (file_name_vpath, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user