summaryrefslogtreecommitdiff
path: root/pkcs11/gkm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-10-01 22:38:24 +0200
committerStef Walter <stefw@gnome.org>2014-10-14 17:55:45 +0200
commit33793e57c557830cda36af68376f5dfd2130c073 (patch)
tree45daf361c85c9b1bd89a10af84ceca6ffc828699 /pkcs11/gkm
parent75c1fb8b8e3eb0df794bd80ed883fdc16a865664 (diff)
downloadgnome-keyring-33793e57c557830cda36af68376f5dfd2130c073.tar.gz
test-secret: Don't leak new secrets in test_equal()
Secrets created with gkm_secret_new* must be unref'fed when no longer used. https://bugzilla.gnome.org/show_bug.cgi?id=738508
Diffstat (limited to 'pkcs11/gkm')
-rw-r--r--pkcs11/gkm/test-secret.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkcs11/gkm/test-secret.c b/pkcs11/gkm/test-secret.c
index cf9e4bdb..82df3d86 100644
--- a/pkcs11/gkm/test-secret.c
+++ b/pkcs11/gkm/test-secret.c
@@ -185,6 +185,9 @@ test_equal (void)
g_object_unref (one);
one = gkm_secret_new_from_password ("other");
g_assert (!gkm_secret_equal (one, two));
+
+ g_object_unref (one);
+ g_object_unref (two);
}
int