summaryrefslogtreecommitdiff
path: root/src/fr-process.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-11 19:08:50 +0100
committerraveit65 <[email protected]>2019-03-14 16:04:11 +0100
commit6caaf02af28195d103b572fb4ede4b37b82c2575 (patch)
tree496d1a02b7c8a33ecc8ab85dd98f3194b6e2e018 /src/fr-process.c
parent8f8543eca706f98a0e2e92db7ffbed4da3adb79d (diff)
downloadengrampa-6caaf02af28195d103b572fb4ede4b37b82c2575.tar.bz2
engrampa-6caaf02af28195d103b572fb4ede4b37b82c2575.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); ^~~~~~~~~
Diffstat (limited to 'src/fr-process.c')
-rw-r--r--src/fr-process.c4
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);