Free memory used by connection_t after it is deleted from the connection tree.
This commit is contained in:
parent
672ad5634c
commit
18c617ecf2
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue