Skip to content

Commit c55754a

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 de15e62 commit c55754a

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
@@ -736,10 +736,8 @@ start_current_command (FrProcess *process)
736736
}
737737
#endif
738738

739-
if ((fixname) && (system(commandline) != 0)) {
739+
if ((fixname) && (system(commandline) != 0))
740740
g_warning ("The files could not be move: %s\n", commandline);
741-
return;
742-
}
743741

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

0 commit comments

Comments
 (0)