]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2209] Don't release the zone table twice
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 26 Oct 2012 18:15:53 +0000 (20:15 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 26 Oct 2012 18:15:53 +0000 (20:15 +0200)
Removing the release from the test, since the segment now destroys it
itself. We can't check all memory is deallocated at that moment in the
test (since we can't do it before the destroy -- it is not deallocated
fully yet, and can't do it after also, since the memory segment doesn't
exist). But that doesn't matter, since the segment checks by assert.

src/lib/datasrc/tests/memory/zone_writer_unittest.cc

index 03cfd7b06f66e799130fa4c6024fa955e450da96..13bcc3b46920e97e47e59a2ec8142aab842a71e8 100644 (file)
@@ -56,11 +56,6 @@ public:
     void TearDown() {
         // Release the writer
         writer_.reset();
-        // Release the table we used
-        ZoneTable::destroy(segment_->getMemorySegment(),
-                           segment_->getHeader().getTable());
-        // And check we freed all memory
-        EXPECT_TRUE(segment_->getMemorySegment().allMemoryDeallocated());
     }
 protected:
     scoped_ptr<ZoneTableSegment> segment_;