summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-keyring.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-keyring.c')
-rw-r--r--dbus/dbus-keyring.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/dbus-keyring.c b/dbus/dbus-keyring.c
index 2162e296..d4aae2fb 100644
--- a/dbus/dbus-keyring.c
+++ b/dbus/dbus-keyring.c
@@ -733,6 +733,8 @@ _dbus_keyring_new_homedir (const DBusString *username,
&keyring->directory, 0))
goto failed;
+ _dbus_string_free (&homedir);
+
if (!_dbus_concat_dir_and_file (&keyring->directory,
&dotdir))
goto failed;
@@ -1012,6 +1014,9 @@ _dbus_keyring_test (void)
}
printf (" %d keys in test\n", ring1->n_keys);
+
+ _dbus_keyring_unref (ring1);
+ _dbus_keyring_unref (ring2);
return TRUE;