[gnome-keyring] test-secret: Don't leak new secrets in test_equal()
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] test-secret: Don't leak new secrets in test_equal()
- Date: Tue, 14 Oct 2014 16:19:50 +0000 (UTC)
commit 33793e57c557830cda36af68376f5dfd2130c073
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Oct 1 22:38:24 2014 +0200
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
pkcs11/gkm/test-secret.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/gkm/test-secret.c b/pkcs11/gkm/test-secret.c
index cf9e4bd..82df3d8 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]