Skip to content
Permalink
Browse files

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 11, 2019
1 parent de15e62 commit c55754a896ddf4468bbc4c9fac842c4cf85f234c
Showing with 1 addition and 3 deletions.
  1. +1 −3 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);

0 comments on commit c55754a

Please sign in to comment.
You can’t perform that action at this time.