1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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
This commit is contained in:
Volker Lendecke 2015-08-07 08:29:17 +02:00 committed by Ralph Böhme
parent 938636886c
commit 1fcad53d7c

View File

@ -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;
}