From aa37a2683449fe91dfcbce75c94e8692b36de12b Mon Sep 17 00:00:00 2001 From: Chen Lihui Date: Thu, 10 Sep 2020 15:49:27 +0800 Subject: [PATCH] Make sure to clean the external client/service handle. Signed-off-by: Chen Lihui --- rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp index e330d92986..c7bf35aa5b 100644 --- a/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp +++ b/rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp @@ -86,6 +86,7 @@ class TestAllocatorMemoryStrategy : public ::testing::Test void TearDown() override { + allocator_memory_strategy_.reset(); rclcpp::shutdown(); }