[glib-networking/wip/openssl] Do not leak the session



commit bb6e7ef17e0255fcc845770c05fd455a11bb52e3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Nov 9 12:22:23 2015 +0100

    Do not leak the session

 tls/openssl/gtlsserverconnection-openssl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlsserverconnection-openssl.c b/tls/openssl/gtlsserverconnection-openssl.c
index 8ae2bb8..68be73a 100644
--- a/tls/openssl/gtlsserverconnection-openssl.c
+++ b/tls/openssl/gtlsserverconnection-openssl.c
@@ -68,6 +68,7 @@ g_tls_server_connection_openssl_finalize (GObject *object)
 
   SSL_free (priv->ssl);
   SSL_CTX_free (priv->ssl_ctx);
+  SSL_SESSION_free (priv->session);
 
   G_OBJECT_CLASS (g_tls_server_connection_openssl_parent_class)->finalize (object);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]