]> git.meshlink.io Git - meshlink/commitdiff
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 834b7d7735fdccdddb3b304bc35a907e804ae24f..9e5d145ea200295ae989c27bc1cb1d16a995e56f 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"));