Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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);
                ^~~~~~~~~
  • Loading branch information
rbuj authored and sc0w committed Mar 14, 2019
1 parent 84db3ea commit 8e1c290
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fr-process.c
Expand Up @@ -735,10 +735,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);
Expand Down

0 comments on commit 8e1c290

Please sign in to comment.