summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
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;
}