From 3ccce614d034f24812c640d78a475a6e2f5e9815 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 23 Aug 2010 21:40:07 +0200 Subject: [PATCH] Fix SSL/TLS related memory leak. --- src/network/connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/connection.c b/src/network/connection.c index c48cc19..3bf72c9 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -251,6 +251,9 @@ void* net_con_get_ptr(struct net_connection* con) void net_con_destroy(struct net_connection* con) { +#ifdef SSL_SUPPORT + SSL_free(con->ssl); +#endif hub_free(con); }