Skip to content

Commit 69c0f92

Browse files
author
Razvan Becheriu
committed
[#3366] fix memory leak in unittests
1 parent bad37a6 commit 69c0f92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/dhcpsrv/tests/cfg_iface_unittest.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ CfgIfaceTest::TearDown() {
9999

100100
// Reset global handlers
101101
CfgIface::open_sockets_failed_callback_ = 0;
102+
103+
// Handle all remaining callbacks.
104+
io_service_->stopAndPoll();
102105
}
103106

104107
bool

0 commit comments

Comments
 (0)