if the adb had ever returned addresses of a family

other than AF_INET or AF_INET6, there would have been a memory leak
This commit is contained in:
Andreas Gustafsson 2001-01-11 20:31:31 +00:00
parent 8c56932f9a
commit 8116149a05

View file

@ -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 <config.h>
@ -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, &notify->dst, 0, key, 15,
notify->zone->task,
notify_done, notify,
&notify->request);
cleanup_key:
if (key != NULL)
dns_tsigkey_detach(&key);
dns_message_destroy(&message);