summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-03-29 17:36:54 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-04-10 10:08:35 +0200
commitd59e6873086ff95deb0953c5558632a19659f79a (patch)
treefc74825bffd65d92ac7cc65c92dfaece8bd5e857
parent4912a67d372e47e86f07e1ad5ca9a2881ad28157 (diff)
downloadgvfs-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
-rw-r--r--client/gdaemonfile.c2
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)
{