diff options
author | rbuj <[email protected]> | 2019-03-11 19:08:50 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-14 16:08:57 +0100 |
commit | 8e1c290c3a710a4a0a48047fffab0775e613918e (patch) | |
tree | 33414f87b1b0beb8e34eaf47299c8c52747af639 | |
parent | 84db3eabf8f2be8b4aa4eb711b522c348a29f35e (diff) | |
download | engrampa-8e1c290c3a710a4a0a48047fffab0775e613918e.tar.bz2 engrampa-8e1c290c3a710a4a0a48047fffab0775e613918e.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 7a65493..56bcfbf 100644 --- a/src/fr-process.c +++ b/src/fr-process.c @@ -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); |