[glib-networking/wip/openssl: 29/41] certificate: free the bio
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl: 29/41] certificate: free the bio
- Date: Tue, 19 Jan 2016 08:24:39 +0000 (UTC)
commit 29f341da7ecff2b7de69abf9903451358a028b92
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]