From 8116149a05be8612845e21fd2898e82381992f44 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 11 Jan 2001 20:31:31 +0000 Subject: [PATCH] if the adb had ever returned addresses of a family other than AF_INET or AF_INET6, there would have been a memory leak --- lib/dns/zone.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 0c370f3ff6..01e248ecc0 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.295 2001/01/11 08:10:47 bwelling Exp $ */ +/* $Id: zone.c,v 1.296 2001/01/11 20:31:31 gson Exp $ */ #include @@ -2428,13 +2428,14 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) { break; default: result = ISC_R_NOTIMPLEMENTED; - goto cleanup; + goto cleanup_key; } result = dns_request_createvia(notify->zone->view->requestmgr, message, &src, ¬ify->dst, 0, key, 15, notify->zone->task, notify_done, notify, ¬ify->request); + cleanup_key: if (key != NULL) dns_tsigkey_detach(&key); dns_message_destroy(&message);