BIND 10 master, updated. 802589cc9ba0d647b7cb80b84f951f7f3cc6615a [master] Fix leaks in newly added RRset unittests

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Aug 17 07:53:01 UTC 2012


The branch, master has been updated
       via  802589cc9ba0d647b7cb80b84f951f7f3cc6615a (commit)
      from  e212ae7726b5ad6221a44ce80f10cf35e9ecb25c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 802589cc9ba0d647b7cb80b84f951f7f3cc6615a
Author: Mukund Sivaraman <muks at isc.org>
Date:   Fri Aug 17 13:11:35 2012 +0530

    [master] Fix leaks in newly added RRset unittests

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/tests/rrset_unittest.cc |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rrset_unittest.cc b/src/lib/dns/tests/rrset_unittest.cc
index 4c80361..5596bcb 100644
--- a/src/lib/dns/tests/rrset_unittest.cc
+++ b/src/lib/dns/tests/rrset_unittest.cc
@@ -277,13 +277,13 @@ class RRsetRRSIGTest : public ::testing::Test {
 protected:
     RRsetRRSIGTest() : test_name("test.example.com")
     {
-        rrset_a = new RRset(test_name, RRClass::IN(),
-                            RRType::A(), RRTTL(3600));
+        rrset_a = RRsetPtr(new RRset(test_name, RRClass::IN(),
+                                     RRType::A(), RRTTL(3600)));
         rrset_a->addRdata(in::A("192.0.2.1"));
         rrset_a->addRdata(in::A("192.0.2.2"));
 
-        rrset_aaaa = new RRset(test_name, RRClass::IN(),
-                               RRType::AAAA(), RRTTL(3600));
+        rrset_aaaa = RRsetPtr(new RRset(test_name, RRClass::IN(),
+                                        RRType::AAAA(), RRTTL(3600)));
         rrset_aaaa->addRdata(in::AAAA("2001:db8::1234"));
 
         rrset_rrsig = RRsetPtr(new RRset(test_name, RRClass::IN(),
@@ -295,8 +295,8 @@ protected:
     }
 
     const Name test_name;
-    RRset* rrset_a;           // A RRset with two RDATAs
-    RRset* rrset_aaaa;        // AAAA RRset with one RDATA with RRSIG
+    RRsetPtr rrset_a;           // A RRset with two RDATAs
+    RRsetPtr rrset_aaaa;        // AAAA RRset with one RDATA with RRSIG
     RRsetPtr rrset_rrsig;       // RRSIG for the AAAA RRset
 };
 



More information about the bind10-changes mailing list