2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

1284. [bug] Memory leak if dns_db_beginload() failed.

This commit is contained in:
Mark Andrews
2002-05-08 06:51:52 +00:00
parent ddc592d128
commit 29f5bb81e2
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.367 2002/04/02 08:04:42 marka Exp $ */
/* $Id: zone.c,v 1.368 2002/05/08 06:51:49 marka Exp $ */
#include <config.h>
@@ -1170,7 +1170,7 @@ zone_startload(dns_db_t *db, dns_zone_t *zone, isc_time_t loadtime) {
result = dns_db_beginload(db, &callbacks.add,
&callbacks.add_private);
if (result != ISC_R_SUCCESS)
return (result);
goto cleanup;
options = DNS_MASTER_MANYERRORS|DNS_MASTER_ZONE;
if (zone->type == dns_zone_slave)
options |= DNS_MASTER_SLAVE;