From 5e1422020c005f8fa9bcc93e1a3956ff4039f958 Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 9 Nov 2014 12:53:01 +0300 Subject: caja-sendto-command: don't leak memory Closes https://github.com/mate-desktop/caja-extensions/pull/7 --- sendto/caja-sendto-command.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.1