From 51e4a1e45407ead0cb7753237670620bee6eee2d Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 3 May 2019 10:23:56 +1200 Subject: rpc/dns: reduce the CID count on temporary variables CID 1363189 and others. Signed-off-by: Douglas Bagnall Reviewed-by: Gary Lockyer --- source4/rpc_server/dnsserver/dnsdata.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/dnsserver/dnsdata.c b/source4/rpc_server/dnsserver/dnsdata.c index 178ed7c51b1..2dc098a64a0 100644 --- a/source4/rpc_server/dnsserver/dnsdata.c +++ b/source4/rpc_server/dnsserver/dnsdata.c @@ -778,6 +778,7 @@ struct dns_tree *dns_build_tree(TALLOC_CTX *mem_ctx, const char *name, struct ld root = dns_tree_init(mem_ctx, nlist[rootcount-1], NULL); if (root == NULL) { + talloc_free(nlist); return NULL; } @@ -849,6 +850,7 @@ struct dns_tree *dns_build_tree(TALLOC_CTX *mem_ctx, const char *name, struct ld return root; failed: + talloc_free(nlist); talloc_free(root); return NULL; } -- cgit v1.2.1