(exec_extension): fix memory leak.

Found by Coverity.
Coverity id #331829.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2021-05-24 17:59:12 +00:00 committed by Andrew Borodin
parent 4db80f3010
commit c15b752fbf

View File

@ -460,6 +460,7 @@ exec_extension (WPanel * panel, void *target, const vfs_path_t * filename_vpath,
{
message (D_ERROR, MSG_ERROR,
_("Cannot create temporary command file\n%s"), unix_error_string (errno));
g_string_free (shell_string, TRUE);
goto ret;
}