Fix SSL/TLS related memory leak.

This commit is contained in:
Jan Vidar Krey
2011-08-16 12:04:14 +02:00
parent e30505b54e
commit 3ccce614d0
+3
View File
@@ -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);
}