diff --git a/lib/isc/task.c b/lib/isc/task.c index 4d203e1e6d..eb18349e5e 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -108,6 +108,8 @@ event_allocate(isc_memctx_t *mctx, void *sender, isc_eventtype_t type, event->type = type; event->action = action; event->arg = arg; + event->destroy = NULL; + INIT_LINK(event, link); return (event); }