diff options
author | Benjamin Otte <otte@gnome.org> | 2009-08-10 19:28:35 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-08-19 11:08:01 +0200 |
commit | aaf322ae906589204812b0466a9f6c68b9d02571 (patch) | |
tree | 4478f9b74539391b4fc82904a8060de2d4889c3e | |
parent | 8b97c4a5a7e5a0a16593a405ffa849835f645072 (diff) | |
download | gvfs-aaf322ae906589204812b0466a9f6c68b9d02571.tar.gz |
[FTP] plug memleak
-rw-r--r-- | daemon/gvfsftptask.c | 3 |
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) { |