mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
add event destructor
This commit is contained in:
@@ -142,6 +142,8 @@ isc_event_free(isc_event_t *eventp) {
|
||||
event = *eventp;
|
||||
REQUIRE(event != NULL);
|
||||
|
||||
if (event->destroy != NULL)
|
||||
(event->destroy)(event);
|
||||
isc_mem_put(event->mctx, event, event->size);
|
||||
|
||||
*eventp = NULL;
|
||||
|
Reference in New Issue
Block a user