projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Free memory used by connection_t after it is deleted from the connection tree.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
60dd541
..
834b7d7
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-44,7
+44,7
@@
void init_connections(void)
{
cp();
{
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"));
broadcast = new_connection();
broadcast->name = xstrdup(_("everyone"));
broadcast->hostname = xstrdup(_("BROADCAST"));