2
0
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:
Bob Halley
1998-11-03 19:05:12 +00:00
parent 6d05b41aae
commit 5741be0b80
2 changed files with 4 additions and 0 deletions

View File

@@ -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;