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, 10 Mar 2015 09:55:43 +0000 (10:55 +0100)
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>
(cherry picked from commit 5d397c8198bcd2cdccc3deda57377d4696e6abd1)

source4/dns_server/dlz_bind9.c

index 8d5a208c2bbd4f546d6ca88daed798bc1190c909..9f144a4340210be1ca18ab49480020c5987dadb9 100644 (file)
@@ -980,6 +980,8 @@ _PUBLIC_ isc_result_t dlz_allnodes(const char *zone, void *dbdata,
                                continue;
                        }
                }
+
+               talloc_free(el_ctx);
        }
 
        talloc_free(tmp_ctx);