From 057cedf6b5a2e3647e4a378cda68c06a3a91c573 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 27 Jan 2000 01:07:17 +0000 Subject: [PATCH] fix double free introduced by previous change --- lib/dns/zone.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index b8bb2db36f..4c339b662b 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: zone.c,v 1.65 2000/01/27 01:00:10 gson Exp $ */ + /* $Id: zone.c,v 1.66 2000/01/27 01:07:17 gson Exp $ */ #include @@ -2970,7 +2970,6 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr, ISC_LIST_INIT(zmgr->zones); result = isc_rwlock_init(&zmgr->rwlock, 0, 0); if (result != ISC_R_SUCCESS) { - isc_mem_put(mctx, zmgr, sizeof *zmgr); UNEXPECTED_ERROR(__FILE__, __LINE__, "isc_rwlock_init() failed: %s", isc_result_totext(result)); @@ -2979,7 +2978,6 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr, } result = isc_rwlock_init(&zmgr->conflock, UINT_MAX, UINT_MAX); if (result != ISC_R_SUCCESS) { - isc_mem_put(mctx, zmgr, sizeof *zmgr); UNEXPECTED_ERROR(__FILE__, __LINE__, "isc_rwlock_init() failed: %s", isc_result_totext(result));