[gnome-keyring] Free GkdSecretService::alias_directory in finalize()
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] Free GkdSecretService::alias_directory in finalize()
- Date: Tue, 14 Oct 2014 16:21:32 +0000 (UTC)
commit 3db6f3bbbd13d6eec29cf96f103975f793b24e4e
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Oct 14 10:48:53 2014 +0200
Free GkdSecretService::alias_directory in finalize()
This fixes a memory leak reported by valgrind on daemon shutdown
(tested by starting a new daemon instance with --replace).
https://bugzilla.gnome.org/show_bug.cgi?id=738508
daemon/dbus/gkd-secret-service.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-service.c b/daemon/dbus/gkd-secret-service.c
index 375554e..4c62bbe 100644
--- a/daemon/dbus/gkd-secret-service.c
+++ b/daemon/dbus/gkd-secret-service.c
@@ -1245,6 +1245,9 @@ gkd_secret_service_finalize (GObject *obj)
g_hash_table_destroy (self->aliases);
self->aliases = NULL;
+ g_free (self->alias_directory);
+ self->alias_directory = NULL;
+
G_OBJECT_CLASS (gkd_secret_service_parent_class)->finalize (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]