]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1635. [bug] Memory leak on error in query_addds().
authorMark Andrews <marka@isc.org>
Fri, 14 May 2004 00:10:52 +0000 (00:10 +0000)
committerMark Andrews <marka@isc.org>
Fri, 14 May 2004 00:10:52 +0000 (00:10 +0000)
CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index 9333b4b1dce17c0b50595b880560c36ff3868061..4a3ff5fde568df1609b6edd4850dd83edc1bcf48 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1635.  [bug]           Memory leak on error in query_addds().
+
 1634.  [placeholder]   rt11208
 
 1633.  [bug]           named should return NOTIMP to update requests to a
index 1ba7622df2b51b6a4c6452f845432cac990506c0..556c294646da07bf9a3d588d334966064b83d1c6 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.258 2004/04/15 01:58:23 marka Exp $ */
+/* $Id: query.c,v 1.259 2004/05/14 00:10:52 marka Exp $ */
 
 #include <config.h>
 
@@ -1785,7 +1785,7 @@ query_addds(ns_client_t *client, dns_db_t *db, dns_dbnode_t *node) {
        rdataset = query_newrdataset(client);
        sigrdataset = query_newrdataset(client);
        if (rdataset == NULL || sigrdataset == NULL)
-               return;
+               goto cleanup;
 
        /*
         * Look for the DS record, which may or may not be present.