From 77eac310c57be3cec251eed510a6bc265546f9b6 Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 6 Jul 2015 01:54:01 +0200 Subject: [PATCH] Revert "Set edge->reverse to NULL before we free it" This reverts commit eda9f0ea8ed8c276ac0280c710e0390b6f53c277. --- src/edge.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/edge.c b/src/edge.c index 00ce6fef..6aed0339 100644 --- a/src/edge.c +++ b/src/edge.c @@ -78,11 +78,8 @@ edge_t *new_edge(void) { void free_edge(edge_t *e) { sockaddrfree(&e->address); sockaddrfree(&e->local_address); - if (e->reverse) - e->reverse = NULL; free(e); - e = NULL; } void edge_add(edge_t *e) { @@ -150,9 +147,7 @@ bool dump_edges(connection_t *c) { local_address, e->options, e->weight, e->avg_rtt); free(address); - address = NULL; free(local_address); - local_address = NULL; } }