summaryrefslogtreecommitdiff
path: root/sendto/caja-sendto-command.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-09 12:53:01 +0300
committerStefano Karapetsas <[email protected]>2014-12-17 09:02:59 +0100
commit5e1422020c005f8fa9bcc93e1a3956ff4039f958 (patch)
treea94d9f11e69fd88c7c9fc80302b9ff6dcb006ed2 /sendto/caja-sendto-command.c
parent9378ede262bf4d880ed9dae0f33858911c355e94 (diff)
downloadcaja-extensions-5e1422020c005f8fa9bcc93e1a3956ff4039f958.tar.bz2
caja-extensions-5e1422020c005f8fa9bcc93e1a3956ff4039f958.tar.xz
caja-sendto-command: don't leak memory
Closes https://github.com/mate-desktop/caja-extensions/pull/7
Diffstat (limited to 'sendto/caja-sendto-command.c')
-rw-r--r--sendto/caja-sendto-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sendto/caja-sendto-command.c b/sendto/caja-sendto-command.c
index 5d863b0..6e30885 100644
--- a/sendto/caja-sendto-command.c
+++ b/sendto/caja-sendto-command.c
@@ -225,6 +225,7 @@ pack_files (NS_ui *ui)
engrampa_cmd, tmp_work_dir,
filename,
pack_type);
+ g_free (engrampa_cmd);
/* engrampa doesn't understand URIs */
for (l = file_list ; l; l=l->next){
@@ -241,6 +242,7 @@ pack_files (NS_ui *ui)
g_string_printf (tmp,"%s/%s%s", tmp_work_dir,
filename,
pack_type);
+ g_free (pack_type);
g_free (tmp_work_dir);
packed_file = g_filename_to_uri (tmp->str, NULL, NULL);
g_string_free(tmp, TRUE);