(execute_menu_command): fix memory leak.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-05-15 12:02:08 +03:00
parent ded5d37ff0
commit f657d92e52

View File

@ -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);