diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-03-29 17:36:54 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-04-10 10:08:35 +0200 |
commit | d59e6873086ff95deb0953c5558632a19659f79a (patch) | |
tree | fc74825bffd65d92ac7cc65c92dfaece8bd5e857 /client | |
parent | 4912a67d372e47e86f07e1ad5ca9a2881ad28157 (diff) | |
download | gvfs-d59e6873086ff95deb0953c5558632a19659f79a.tar.gz |
Fix 'path[12]_out' leak in file_transfer()
file_transfer() calls create_proxy_for_file2() passing it 'path1_out'
and 'path2_out' arguments. These return values are newly allocated
strings, so they must be freed when no longer used. This fixes a leak
reported by valgrind.
https://bugzilla.gnome.org/show_bug.cgi?id=747361
Diffstat (limited to 'client')
-rw-r--r-- | client/gdaemonfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c index 8e50c499..6de410b3 100644 --- a/client/gdaemonfile.c +++ b/client/gdaemonfile.c @@ -2995,6 +2995,8 @@ retry: g_main_context_unref (data.context); g_main_loop_unref (data.loop); } + g_free (path1); + g_free (path2); if (! res) { |