s4:dlz_bind9: do an early talloc_free(el_ctx) in dlz_allnodes()
authorStefan Metzmacher <metze@samba.org>
Wed, 30 Jul 2014 15:57:13 +0000 (17:57 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2014 07:13:06 +0000 (09:13 +0200)
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>
source4/dns_server/dlz_bind9.c

index 092f2557c8ac40acb55b77cee9564a3c46a8876d..83b607025afa482fe7542ab120a46356016e7a18 100644 (file)
@@ -987,6 +987,8 @@ _PUBLIC_ isc_result_t dlz_allnodes(const char *zone, void *dbdata,
                                continue;
                        }
                }
+
+               talloc_free(el_ctx);
        }
 
        talloc_free(tmp_ctx);