]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4882. [bug] Address potential memory leak in
authorMark Andrews <marka@isc.org>
Tue, 30 Jan 2018 04:27:22 +0000 (15:27 +1100)
committerMark Andrews <marka@isc.org>
Tue, 30 Jan 2018 04:27:22 +0000 (15:27 +1100)
                        dns_update_signaturesinc. [RT #47084]

CHANGES
lib/dns/update.c

diff --git a/CHANGES b/CHANGES
index 6aac08effd05d7b96529d42cb17f91e118609818..a039384f3c9963ce2dd481f6cf7d0dba1e96d9d2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4882.  [bug]           Address potential memory leak in
+                       dns_update_signaturesinc. [RT #47084]
+
 4881.  [bug]           Only include dst_openssl.h when OpenSSL is required.
                        [RT #47068]
 
index 076b2c11854cc13b9af169d53596bb86d9de94b8..4273666eafd4feb67c37980a24d86b90a19a09f7 100644 (file)
@@ -2008,6 +2008,10 @@ dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
        }
 
  failure:
+       if (node != NULL) {
+               dns_db_detachnode(db, &node);
+       }
+
        dns_diff_clear(&state->sig_diff);
        dns_diff_clear(&state->nsec_diff);
        dns_diff_clear(&state->nsec_mindiff);