From f4f70bf596b10acbb7fb0bf0bdbe4d6637e23e36 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 26 Apr 2014 23:30:53 +1000 Subject: [PATCH] address 'version' reference leak --- bin/named/update.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/named/update.c b/bin/named/update.c index 4ae02649bc..0713fde579 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -553,6 +553,7 @@ foreach_rrset(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, */ dns_db_currentversion(db, &oldver); dns_clientinfo_init(&ci, NULL, (ver != oldver) ? ver : NULL); + dns_db_closeversion(db, &oldver, ISC_FALSE); node = NULL; result = dns_db_findnodeext(db, name, ISC_FALSE, &cm, &ci, &node); @@ -644,6 +645,7 @@ foreach_rr(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, */ dns_db_currentversion(db, &oldver); dns_clientinfo_init(&ci, NULL, (ver != oldver) ? ver : NULL); + dns_db_closeversion(db, &oldver, ISC_FALSE); if (type == dns_rdatatype_any) return (foreach_node_rr(db, ver, name,