Revert "Set edge->reverse to NULL before we free it"
This reverts commit eda9f0ea8e
.
This commit is contained in:
parent
8dcd2a9995
commit
77eac310c5
1 changed files with 0 additions and 5 deletions
|
@ -78,11 +78,8 @@ edge_t *new_edge(void) {
|
||||||
void free_edge(edge_t *e) {
|
void free_edge(edge_t *e) {
|
||||||
sockaddrfree(&e->address);
|
sockaddrfree(&e->address);
|
||||||
sockaddrfree(&e->local_address);
|
sockaddrfree(&e->local_address);
|
||||||
if (e->reverse)
|
|
||||||
e->reverse = NULL;
|
|
||||||
|
|
||||||
free(e);
|
free(e);
|
||||||
e = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void edge_add(edge_t *e) {
|
void edge_add(edge_t *e) {
|
||||||
|
@ -150,9 +147,7 @@ bool dump_edges(connection_t *c) {
|
||||||
local_address, e->options, e->weight,
|
local_address, e->options, e->weight,
|
||||||
e->avg_rtt);
|
e->avg_rtt);
|
||||||
free(address);
|
free(address);
|
||||||
address = NULL;
|
|
||||||
free(local_address);
|
free(local_address);
|
||||||
local_address = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue