Don't delete events in event_del(), none of them are allocated with event_new().
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:59:16 +0000 (22:59 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:59:16 +0000 (22:59 +0100)
src/event.c

index 36dab9ff46415e65763f9071ed072ffd22d771a3..03efc675b20f7a480a70167abbfd0e99f514808c 100644 (file)
@@ -40,7 +40,7 @@ static int event_compare(const event_t *a, const event_t *b) {
 }
 
 void init_events(void) {
-       event_tree = splay_alloc_tree((splay_compare_t) event_compare, (splay_action_t) free_event);
+       event_tree = splay_alloc_tree((splay_compare_t) event_compare, NULL);
 }
 
 void exit_events(void) {