summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-07 08:29:17 +0200
committerRalph Böhme <slow@samba.org>2015-08-07 12:57:02 +0200
commit1fcad53d7ca1be619bbc9572100b38886114dee7 (patch)
treeaa29a576b5ad5b0eceded0a598bfa0b6b2a55cae /source4
parent938636886c0bb2c0cc66976c4c6dc763d589335c (diff)
downloadsamba-1fcad53d7ca1be619bbc9572100b38886114dee7.tar.gz
dns_server: Fix a small memleak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Aug 7 12:57:02 CEST 2015 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_query.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 5ddfb0ac3ce..89cfd64b3bc 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -354,6 +354,7 @@ static WERROR handle_question(struct dns_server *dns,
/* First put in the CNAME record */
werror = create_response_rr(question->name, &recs[ri], &ans, &ai);
if (!W_ERROR_IS_OK(werror)) {
+ TALLOC_FREE(new_q);
return werror;
}