Fix SSL/TLS related memory leak.

This commit is contained in:
Jan Vidar Krey 2010-08-23 21:40:07 +02:00
parent e30505b54e
commit 3ccce614d0

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);
}