From: Guus Sliepen Date: Tue, 8 Sep 2009 14:35:28 +0000 (+0200) Subject: Always remove a node from the UDP tree before freeing it. X-Git-Tag: release-1.0.10~48 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=5a7fc58012da10b96073804994777255463d1b8d;hp=5a7fc58012da10b96073804994777255463d1b8d Always remove a node from the UDP tree before freeing it. 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. ---