[gnome-keyring] [roots-store] Fix memory leak of unique string.



commit a009c2f5caef5e19294cc31f99ff3214391d070d
Author: Stef Walter <stefw collabora co uk>
Date:   Mon Dec 13 20:19:16 2010 +0000

    [roots-store] Fix memory leak of unique string.

 pkcs11/roots-store/gkm-roots-module.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/roots-store/gkm-roots-module.c b/pkcs11/roots-store/gkm-roots-module.c
index c3b7a64..2b56e9d 100644
--- a/pkcs11/roots-store/gkm-roots-module.c
+++ b/pkcs11/roots-store/gkm-roots-module.c
@@ -119,6 +119,7 @@ add_certificate_for_data (GkmRootsModule *self, const guchar *data,
 
 	/* Create a new certificate object */
 	cert = GKM_CERTIFICATE (gkm_roots_certificate_new (GKM_MODULE (self), unique, path));
+	g_free (unique);
 
 	if (!gkm_serializable_load (GKM_SERIALIZABLE (cert), NULL, data, n_data)) {
 		g_message ("couldn't parse certificate(s): %s", path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]