[gnome-keyring] gkm-gnome2-file: Free keys to 'entries' hash tables
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] gkm-gnome2-file: Free keys to 'entries' hash tables
- Date: Tue, 14 Oct 2014 16:19:25 +0000 (UTC)
commit 6c2d07a4faea639ed2b2bcf1815fdb5cbfa4945e
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Sep 17 11:56:32 2014 +0200
gkm-gnome2-file: Free keys to 'entries' hash tables
The keys to the 'publics' and 'privates' hash tables are strdup'ed
strings, but these strings are never freed. This commit adds a free
function for hash table keys to the g_hash_table_new_full call.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
pkcs11/gnome2-store/gkm-gnome2-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/gnome2-store/gkm-gnome2-file.c b/pkcs11/gnome2-store/gkm-gnome2-file.c
index eb085b5..bc51433 100644
--- a/pkcs11/gnome2-store/gkm-gnome2-file.c
+++ b/pkcs11/gnome2-store/gkm-gnome2-file.c
@@ -127,7 +127,7 @@ attributes_new (void)
static GHashTable*
entries_new (void)
{
- return g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify)g_hash_table_unref);
+ return g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify)g_free,
(GDestroyNotify)g_hash_table_unref);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]