From 6caaf02af28195d103b572fb4ede4b37b82c2575 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 11 Mar 2019 19:08:50 +0100 Subject: fr-process: Fix memory leak Fixes Clang static analyzer warning: fr-process.c:740:3: warning: Potential leak of memory pointed to by 'argv' g_warning ("The files could not be move: %s\n", commandline); ^~~~~~~~~ --- src/fr-process.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fr-process.c b/src/fr-process.c index 0ad5b1e..c65c02e 100644 --- a/src/fr-process.c +++ b/src/fr-process.c @@ -736,10 +736,8 @@ start_current_command (FrProcess *process) } #endif - if ((fixname) && (system(commandline) != 0)) { + if ((fixname) && (system(commandline) != 0)) g_warning ("The files could not be move: %s\n", commandline); - return; - } if (info->begin_func != NULL) (*info->begin_func) (info->begin_data); -- cgit v1.2.1