Fix SSL disconnect memory leak.

This commit is contained in:
Jan Vidar Krey 2011-12-02 13:03:17 +01:00
parent 9f16298688
commit e972b03f38

View File

@ -222,7 +222,7 @@ void net_cleanup_process(struct net_cleanup_handler* handler)
{ {
struct net_connection* con = handler->queue[n]; struct net_connection* con = handler->queue[n];
LOG_TRACE("net_cleanup_process: free: %p", con); LOG_TRACE("net_cleanup_process: free: %p", con);
hub_free(con); net_con_destroy(con);
} }
handler->num = 0; handler->num = 0;
} }