[glib-networking/wip/openssl] certificate: free the bio
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl] certificate: free the bio
- Date: Fri, 16 Oct 2015 13:35:07 +0000 (UTC)
commit c1f46e1e9f392d723263c8333bc874e5a8b1360f
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]