From: Alan T. DeKok Date: Tue, 31 Oct 2017 20:05:02 +0000 (-0400) Subject: timer events are parented from the event list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6dc9d2b09f554fa937288f117ffa4ae5f0eb06;p=thirdparty%2Ffreeradius-server.git timer events are parented from the event list so delete them manually, before calling talloc_free_children(), otherwise we will try to access children that no longer exist... --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index abaa8940293..887a50ba230 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -1764,12 +1764,12 @@ static int _event_list_free(fr_event_list_t *el) { fr_event_timer_t const *ev; - talloc_free_children(el); - while ((ev = fr_heap_peek(el->times)) != NULL) fr_event_timer_delete(el, &ev); talloc_free(el->times); + talloc_free_children(el); + close(el->kq); return 0;