From: Guus Sliepen Date: Fri, 3 Dec 2004 13:22:18 +0000 (+0000) Subject: Free memory used by connection_t after it is deleted from the connection tree. X-Git-Tag: release-1.0.4~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=18c617ecf29b9dfb95227e764c76fff0f9d7af96;p=oweals%2Ftinc.git Free memory used by connection_t after it is deleted from the connection tree. --- diff --git a/src/connection.c b/src/connection.c index 60dd541..834b7d7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -44,7 +44,7 @@ void init_connections(void) { cp(); - connection_tree = avl_alloc_tree((avl_compare_t) connection_compare, NULL); + connection_tree = avl_alloc_tree((avl_compare_t) connection_compare, (avl_action_t) free); broadcast = new_connection(); broadcast->name = xstrdup(_("everyone")); broadcast->hostname = xstrdup(_("BROADCAST"));