dns_server: Fix a small memleak
authorVolker Lendecke <vl@samba.org>
Fri, 7 Aug 2015 06:29:17 +0000 (08:29 +0200)
committerRalph Böhme <slow@samba.org>
Fri, 7 Aug 2015 10:57:02 +0000 (12:57 +0200)
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

source4/dns_server/dns_query.c

index 5ddfb0ac3cec0045d9171f3f2d710a7fc30fbbd4..89cfd64b3bc5aca9a723b53d30905e72c03c48e8 100644 (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;
                        }