diff options
author | monsta <[email protected]> | 2014-11-04 14:46:43 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-19 15:42:44 +0100 |
commit | 4f7a774746b0957e8b62e41f27a82b543b6ccf5a (patch) | |
tree | fc5c761496151830a3bfae0388d905e7390b9842 /src/fr-command-tar.c | |
parent | 9574a0925e764867c810c35bbff16ab0bae8c930 (diff) | |
download | engrampa-4f7a774746b0957e8b62e41f27a82b543b6ccf5a.tar.bz2 engrampa-4f7a774746b0957e8b62e41f27a82b543b6ccf5a.tar.xz |
don't leak memory
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r-- | src/fr-command-tar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c index f1a89ce..27deafa 100644 --- a/src/fr-command-tar.c +++ b/src/fr-command-tar.c @@ -241,8 +241,10 @@ begin_tar_command (FrCommand *comm) command = g_find_program_in_path ("gtar"); #if defined (__SVR4) && defined (__sun) - if (g_file_test ("/usr/sfw/bin/gtar", G_FILE_TEST_IS_EXECUTABLE)) + if (g_file_test ("/usr/sfw/bin/gtar", G_FILE_TEST_IS_EXECUTABLE)) { + g_free (command); command = g_strdup ("/usr/sfw/bin/gtar"); + } #endif if (command != NULL) fr_process_begin_command (comm->process, command); |