Skip to content

Commit

Permalink
[C] Cleanup created test resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Oct 14, 2024
1 parent bacae48 commit 588b3f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aeron-driver/src/test/c/aeron_driver_conductor_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,13 @@ class DriverConductorTest
m_context.m_context->error_buffer_length = m_context.m_error_log_buffer.size();
}

~DriverConductorTest()
{
aeron_system_counters_close(&m_context.m_system_counters);
aeron_counters_manager_close(&m_context.m_counters_manager);
aeron_distinct_error_log_close(&m_context.m_error_log);
}

size_t readAllBroadcastsFromConductor(aeron_broadcast_receiver_handler_t handler, size_t message_limit = SIZE_MAX)
{
size_t messages = 0;
Expand Down

0 comments on commit 588b3f4

Please sign in to comment.