Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
9833efc0
Commit
9833efc0
authored
Nov 02, 2012
by
Tomek Mrugalski
🛰
Browse files
[2414] Memory leaks in AllocEngine tests fixed.
parent
4838e909
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dhcp/tests/alloc_engine_unittest.cc
View file @
9833efc0
...
@@ -151,6 +151,8 @@ TEST_F(AllocEngineTest, simpleAlloc) {
...
@@ -151,6 +151,8 @@ TEST_F(AllocEngineTest, simpleAlloc) {
// Now check that the lease in LeaseMgr has the same parameters
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6
(
lease
,
from_mgr
);
detailCompareLease6
(
lease
,
from_mgr
);
delete
engine
;
}
}
// This test checks if the fake allocation (for SOLICIT) can succeed
// This test checks if the fake allocation (for SOLICIT) can succeed
...
@@ -201,6 +203,8 @@ TEST_F(AllocEngineTest, allocWithValidHint) {
...
@@ -201,6 +203,8 @@ TEST_F(AllocEngineTest, allocWithValidHint) {
// Now check that the lease in LeaseMgr has the same parameters
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6
(
lease
,
from_mgr
);
detailCompareLease6
(
lease
,
from_mgr
);
delete
engine
;
}
}
// This test checks if the allocation with a hint that is in range,
// This test checks if the allocation with a hint that is in range,
...
@@ -241,6 +245,8 @@ TEST_F(AllocEngineTest, allocWithUsedHint) {
...
@@ -241,6 +245,8 @@ TEST_F(AllocEngineTest, allocWithUsedHint) {
// Now check that the lease in LeaseMgr has the same parameters
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6
(
lease
,
from_mgr
);
detailCompareLease6
(
lease
,
from_mgr
);
delete
engine
;
}
}
// This test checks if the allocation with a hint that is out the blue
// This test checks if the allocation with a hint that is out the blue
...
@@ -272,6 +278,8 @@ TEST_F(AllocEngineTest, allocBogusHint) {
...
@@ -272,6 +278,8 @@ TEST_F(AllocEngineTest, allocBogusHint) {
// Now check that the lease in LeaseMgr has the same parameters
// Now check that the lease in LeaseMgr has the same parameters
detailCompareLease6
(
lease
,
from_mgr
);
detailCompareLease6
(
lease
,
from_mgr
);
delete
engine
;
}
}
// This test verifies that the allocator picks addresses that belong to the
// This test verifies that the allocator picks addresses that belong to the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment