diff --git a/src/network/backend.c b/src/network/backend.c index 73106d1..b74d798 100644 --- a/src/network/backend.c +++ b/src/network/backend.c @@ -222,7 +222,7 @@ void net_cleanup_process(struct net_cleanup_handler* handler) { struct net_connection* con = handler->queue[n]; LOG_TRACE("net_cleanup_process: free: %p", con); - hub_free(con); + net_con_destroy(con); } handler->num = 0; }