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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user