Fix SSL/TLS related memory leak.
This commit is contained in:
parent
e30505b54e
commit
3ccce614d0
|
@ -251,6 +251,9 @@ void* net_con_get_ptr(struct net_connection* con)
|
||||||
|
|
||||||
void net_con_destroy(struct net_connection* con)
|
void net_con_destroy(struct net_connection* con)
|
||||||
{
|
{
|
||||||
|
#ifdef SSL_SUPPORT
|
||||||
|
SSL_free(con->ssl);
|
||||||
|
#endif
|
||||||
hub_free(con);
|
hub_free(con);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue