summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsftp.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-02-21 12:07:45 +0000
committerCarlos Garcia Campos <carlosgc@src.gnome.org>2008-02-21 12:07:45 +0000
commite63384e72bfadbba77f16f5500c35f1f77edfe9f (patch)
treec5bff051141174bbec19b822fb7efb64059c5d28 /daemon/gvfsbackendsftp.c
parent773f23bc51d681fdb5631d70fd9c3db78c5f308e (diff)
downloadgvfs-e63384e72bfadbba77f16f5500c35f1f77edfe9f.tar.gz
Fix memory leak.
2008-02-21 Carlos Garcia Campos <carlosgc@gnome.org> * daemon/gvfsbackendsftp.c: (handle_login): Fix memory leak. svn path=/trunk/; revision=1320
Diffstat (limited to 'daemon/gvfsbackendsftp.c')
-rw-r--r--daemon/gvfsbackendsftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 8da6d0a0..9e40729d 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -764,6 +764,8 @@ handle_login (GVfsBackend *backend,
if (g_vfs_keyring_is_available ())
flags |= G_ASK_PASSWORD_SAVING_SUPPORTED;
+
+ g_free (new_password);
if (!g_mount_source_ask_password (mount_source,
g_str_has_prefix (buffer, "Enter passphrase for key") ?
@@ -877,6 +879,7 @@ handle_login (GVfsBackend *backend,
password_save);
}
+ g_free (new_password);
g_object_unref (prompt_stream);
g_object_unref (reply_stream);
return ret_val;