[glib-networking/wip/openssl: 24/27] certificate: free the bio
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl: 24/27] certificate: free the bio
- Date: Fri, 6 Nov 2015 10:33:37 +0000 (UTC)
commit cd16c072dedd4a45e648d79a5ae8e287dfa30212
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Oct 16 15:34:45 2015 +0200
certificate: free the bio
tls/openssl/gtlscertificate-openssl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlscertificate-openssl.c b/tls/openssl/gtlscertificate-openssl.c
index 99037e8..d6af639 100644
--- a/tls/openssl/gtlscertificate-openssl.c
+++ b/tls/openssl/gtlscertificate-openssl.c
@@ -227,6 +227,7 @@ g_tls_certificate_openssl_set_property (GObject *object,
g_return_if_fail (priv->have_key == FALSE);
bio = BIO_new_mem_buf ((gpointer)string, -1);
priv->key = PEM_read_bio_PrivateKey (bio, NULL, NULL, NULL);
+ BIO_free (bio);
if (priv->key != NULL)
priv->have_key = TRUE;
else if (!priv->construct_error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]