Skip to content

Commit 8e1c290

Browse files
rbujsc0w
authored andcommitted
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); ^~~~~~~~~
1 parent 84db3ea commit 8e1c290

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/fr-process.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,10 +735,8 @@ start_current_command (FrProcess *process)
735735
}
736736
#endif
737737

738-
if ((fixname) && (system(commandline) != 0)) {
738+
if ((fixname) && (system(commandline) != 0))
739739
g_warning ("The files could not be move: %s\n", commandline);
740-
return;
741-
}
742740

743741
if (info->begin_func != NULL)
744742
(*info->begin_func) (info->begin_data);

0 commit comments

Comments
 (0)