From b8cd20fa3cac127d7975c8a05ecad59c1247d108 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 7 Mar 2013 07:20:44 +1100 Subject: [PATCH] 3517. [bug] Reorder destruction to avoid shutdown race. [RT #32777] --- CHANGES | 2 ++ lib/dns/zone.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b2352f1d46..a07520f045 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +3517. [bug] Reorder destruction to avoid shutdown race. [RT #32777] + 3515. [port] '%T' is not portable in strftime(). [RT #32763] 3509. [cleanup] Added a product line to version file to allow for diff --git a/lib/dns/zone.c b/lib/dns/zone.c index a8e1954699..a0826da688 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -6956,9 +6956,9 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) { dns_message_destroy(&message); cleanup: UNLOCK_ZONE(notify->zone); + isc_event_free(&event); if (result != ISC_R_SUCCESS) notify_destroy(notify, ISC_FALSE); - isc_event_free(&event); } static void