Valgrind caught tinc reading free'd memory during a purge(). This was caused by
first removing it from the main node tree, which will already call free_node(),
and then removing it from the UDP tree. This might cause spurious segmentation
faults.
- avl_delete(node_tree, n);
avl_delete(node_udp_tree, n);
avl_delete(node_udp_tree, n);
+ avl_delete(node_tree, n);
}
node_t *lookup_node(char *name)
}
node_t *lookup_node(char *name)