[glib-networking/wip/openssl] certificate: free the bio



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]