Use the proper free function.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 3 Dec 2004 13:27:33 +0000 (13:27 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 3 Dec 2004 13:27:33 +0000 (13:27 +0000)
src/connection.c

index 834b7d7..9e5d145 100644 (file)
@@ -44,7 +44,7 @@ void init_connections(void)
 {
        cp();
 
-       connection_tree = avl_alloc_tree((avl_compare_t) connection_compare, (avl_action_t) free);
+       connection_tree = avl_alloc_tree((avl_compare_t) connection_compare, (avl_action_t) free_connection);
        broadcast = new_connection();
        broadcast->name = xstrdup(_("everyone"));
        broadcast->hostname = xstrdup(_("BROADCAST"));