diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-05-03 10:23:56 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2019-05-09 22:39:27 +0000 |
commit | 51e4a1e45407ead0cb7753237670620bee6eee2d (patch) | |
tree | 5f2db971b443e2d16a7b4ac533e06d4f8a147a07 /source4/rpc_server | |
parent | 5389df9b4df4c7140b8ed712d5b6eba7e899a02f (diff) | |
download | samba-51e4a1e45407ead0cb7753237670620bee6eee2d.tar.gz |
rpc/dns: reduce the CID count on temporary variables
CID 1363189 and others.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/dnsserver/dnsdata.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |