From d172f2db29fa4f2e4a05ed8627628aa08b9ee2c0 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sun, 5 Jul 2015 00:15:04 +0200 Subject: [PATCH] Merge with guus patch for exit_edges() --- src/edge.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/edge.c b/src/edge.c index 69c3eab2..312769d9 100644 --- a/src/edge.c +++ b/src/edge.c @@ -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); }