[glib-networking] tls: Fix a leak in GTlsDatabaseGnutls
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tls: Fix a leak in GTlsDatabaseGnutls
- Date: Thu, 16 Oct 2014 08:08:53 +0000 (UTC)
commit 20b2eac30d6bee6eb39727d09b8a1b90f61d9de8
Author: Philip Withnall <philip withnall collabora co uk>
Date: Mon Sep 22 09:57:05 2014 +0100
tls: Fix a leak in GTlsDatabaseGnutls
https://bugzilla.gnome.org/show_bug.cgi?id=737106
tls/gnutls/gtlsdatabase-gnutls.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsdatabase-gnutls.c b/tls/gnutls/gtlsdatabase-gnutls.c
index 5ea7b24..7c4ad8c 100644
--- a/tls/gnutls/gtlsdatabase-gnutls.c
+++ b/tls/gnutls/gtlsdatabase-gnutls.c
@@ -144,6 +144,7 @@ build_certificate_chain (GTlsDatabaseGnutls *self,
g_tls_certificate_gnutls_set_issuer (previous, G_TLS_CERTIFICATE_GNUTLS (issuer));
certificate = G_TLS_CERTIFICATE_GNUTLS (issuer);
certificate_is_from_db = TRUE;
+ g_object_unref (issuer);
continue;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]