diff --git a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp index 70470ec17a..a992c26a15 100644 --- a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp +++ b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp @@ -83,6 +83,7 @@ class TestAllocatorMemoryStrategy : public ::testing::Test void TearDown() override { + allocator_memory_strategy_.reset(); rclcpp::shutdown(); }