diff options
author | sthen <sthen@openbsd.org> | 2019-09-17 16:19:35 +0000 |
---|---|---|
committer | sthen <sthen@openbsd.org> | 2019-09-17 16:19:35 +0000 |
commit | eab1363e7f842fbdd8c55c4ea51e189c424f2966 (patch) | |
tree | 96d0ab8a762cda75fb5af91323d6135ca9af7ff2 /usr.sbin/nsd/nsd-checkzone.c | |
parent | Zap unused h_errno (diff) | |
download | wireguard-openbsd-eab1363e7f842fbdd8c55c4ea51e189c424f2966.tar.xz wireguard-openbsd-eab1363e7f842fbdd8c55c4ea51e189c424f2966.zip |
merge 4.2.2
Diffstat (limited to 'usr.sbin/nsd/nsd-checkzone.c')
-rw-r--r-- | usr.sbin/nsd/nsd-checkzone.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/nsd/nsd-checkzone.c b/usr.sbin/nsd/nsd-checkzone.c index 21b8ce5648d..9bf74fd6538 100644 --- a/usr.sbin/nsd/nsd-checkzone.c +++ b/usr.sbin/nsd/nsd-checkzone.c @@ -61,6 +61,10 @@ check_zone(struct nsd* nsd, const char* name, const char* fname) errors = zonec_read(name, fname, zone); if(errors > 0) { printf("zone %s file %s has %u errors\n", name, fname, errors); +#ifdef MEMCLEAN /* otherwise, the OS collects memory pages */ + namedb_close(nsd->db); + region_destroy(nsd->options->region); +#endif exit(1); } printf("zone %s is ok\n", name); |