summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-08-10 19:28:35 +0200
committerBenjamin Otte <otte@gnome.org>2009-08-19 11:08:01 +0200
commitaaf322ae906589204812b0466a9f6c68b9d02571 (patch)
tree4478f9b74539391b4fc82904a8060de2d4889c3e
parent8b97c4a5a7e5a0a16593a405ffa849835f645072 (diff)
downloadgvfs-aaf322ae906589204812b0466a9f6c68b9d02571.tar.gz
[FTP] plug memleak
-rw-r--r--daemon/gvfsftptask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gvfsftptask.c b/daemon/gvfsftptask.c
index 72e2cd6a..d7cb2721 100644
--- a/daemon/gvfsftptask.c
+++ b/daemon/gvfsftptask.c
@@ -817,13 +817,14 @@ g_vfs_ftp_task_setup_data_connection_pasv (GVfsFtpTask *task, GVfsFtpMethod meth
&port1, &port2) == 6)
break;
}
- g_strfreev (reply);
if (*s == 0)
{
+ g_strfreev (reply);
g_set_error_literal (&task->error, G_IO_ERROR, G_IO_ERROR_FAILED,
_("Invalid reply"));
return G_VFS_FTP_METHOD_ANY;
}
+ g_strfreev (reply);
if (method == G_VFS_FTP_METHOD_PASV || method == G_VFS_FTP_METHOD_ANY)
{