diff options
author | rbuj <[email protected]> | 2019-03-11 19:08:50 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-14 16:08:38 +0100 |
commit | c55754a896ddf4468bbc4c9fac842c4cf85f234c (patch) | |
tree | 795cbef1d2b0a0d9750b7be3478fbcf1ceeee45c | |
parent | de15e62d3085aa3d7d64d5e6063dd2fd0877be18 (diff) | |
download | engrampa-c55754a896ddf4468bbc4c9fac842c4cf85f234c.tar.bz2 engrampa-c55754a896ddf4468bbc4c9fac842c4cf85f234c.tar.xz |
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);
^~~~~~~~~
-rw-r--r-- | src/fr-process.c | 4 |
1 files changed, 1 insertions, 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); |