Merge with guus patch for exit_edges()
This commit is contained in:
parent
aa9994e49e
commit
d172f2db29
1 changed files with 0 additions and 6 deletions
|
@ -66,12 +66,6 @@ void free_edge_tree(splay_tree_t *edge_tree) {
|
|||
}
|
||||
|
||||
void exit_edges(void) {
|
||||
// since edge_weight_tree does not have delete action defined
|
||||
// we have to cleanup it on exit
|
||||
for splay_each(edge_t, e, edge_weight_tree) {
|
||||
sockaddrfree(&e->address);
|
||||
sockaddrfree(&e->local_address);
|
||||
}
|
||||
splay_delete_tree(edge_weight_tree);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue