summaryrefslogtreecommitdiffstats
path: root/source4/dns_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-07-30 17:57:13 +0200
committerStefan Metzmacher <metze@samba.org>2014-08-26 09:13:06 +0200
commit5d397c8198bcd2cdccc3deda57377d4696e6abd1 (patch)
tree092e1bfe04d323cd213549054538e0226d8553df /source4/dns_server
parentfbebe7e756e4ccd0684e94e9b1e787f98f399ccc (diff)
downloadsamba-5d397c8198bcd2cdccc3deda57377d4696e6abd1.tar.gz
samba-5d397c8198bcd2cdccc3deda57377d4696e6abd1.tar.xz
samba-5d397c8198bcd2cdccc3deda57377d4696e6abd1.zip
s4:dlz_bind9: do an early talloc_free(el_ctx) in dlz_allnodes()
We don't have to keep everything arround while walking the whole zone. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dlz_bind9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index 092f2557c8..83b607025a 100644
--- a/source4/dns_server/dlz_bind9.c
+++ b/source4/dns_server/dlz_bind9.c
@@ -987,6 +987,8 @@ _PUBLIC_ isc_result_t dlz_allnodes(const char *zone, void *dbdata,
continue;
}
}
+
+ talloc_free(el_ctx);
}
talloc_free(tmp_ctx);