From: Guus Sliepen Date: Sat, 15 Jan 2011 21:59:16 +0000 (+0100) Subject: Don't delete events in event_del(), none of them are allocated with event_new(). X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=15a110013b50c53e4d943b9251ed94d0cbdfea85;p=tinc Don't delete events in event_del(), none of them are allocated with event_new(). --- diff --git a/src/event.c b/src/event.c index 36dab9ff..03efc675 100644 --- a/src/event.c +++ b/src/event.c @@ -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) {