BIND 10 trac2414, updated. 9833efc0691e4b80f29a135bfd56fc97e6b0c847 [2414] Memory leaks in AllocEngine tests fixed.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Nov 2 10:36:03 UTC 2012
The branch, trac2414 has been updated
via 9833efc0691e4b80f29a135bfd56fc97e6b0c847 (commit)
from 4838e909a1458198896cd2911488b2d3d442952f (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 9833efc0691e4b80f29a135bfd56fc97e6b0c847
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Fri Nov 2 11:35:55 2012 +0100
[2414] Memory leaks in AllocEngine tests fixed.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/tests/alloc_engine_unittest.cc | 8 ++++++++
1 file changed, 8 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/alloc_engine_unittest.cc b/src/lib/dhcp/tests/alloc_engine_unittest.cc
index bbb4bbd..41cf320 100644
--- a/src/lib/dhcp/tests/alloc_engine_unittest.cc
+++ b/src/lib/dhcp/tests/alloc_engine_unittest.cc
@@ -151,6 +151,8 @@ TEST_F(AllocEngineTest, simpleAlloc) {
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6(lease, from_mgr);
+
+ delete engine;
}
// This test checks if the fake allocation (for SOLICIT) can succeed
@@ -201,6 +203,8 @@ TEST_F(AllocEngineTest, allocWithValidHint) {
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6(lease, from_mgr);
+
+ delete engine;
}
// This test checks if the allocation with a hint that is in range,
@@ -241,6 +245,8 @@ TEST_F(AllocEngineTest, allocWithUsedHint) {
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6(lease, from_mgr);
+
+ delete engine;
}
// This test checks if the allocation with a hint that is out the blue
@@ -272,6 +278,8 @@ TEST_F(AllocEngineTest, allocBogusHint) {
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6(lease, from_mgr);
+
+ delete engine;
}
// This test verifies that the allocator picks addresses that belong to the
More information about the bind10-changes
mailing list