Fix SSL/TLS related memory leak.

This commit is contained in:
Jan Vidar Krey 2010-08-23 21:40:07 +02:00
parent 6e1de7329c
commit f55243cf88
1 changed files with 3 additions and 0 deletions

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