From e9e4025cac17063671274f5d5ae3800e3c6f7022 Mon Sep 17 00:00:00 2001 From: y-okumura-isp Date: Mon, 3 Feb 2020 18:36:53 +0900 Subject: [PATCH] Fix leak in test_count_matched, fini init_option (#469) Signed-off-by: y-okumura-isp --- rcl/test/rcl/test_count_matched.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rcl/test/rcl/test_count_matched.cpp b/rcl/test/rcl/test_count_matched.cpp index 91272ae34..899982dd8 100644 --- a/rcl/test/rcl/test_count_matched.cpp +++ b/rcl/test/rcl/test_count_matched.cpp @@ -113,6 +113,8 @@ class CLASSNAME (TestCountFixture, RMW_IMPLEMENTATION) : public ::testing::Test *this->context_ptr = rcl_get_zero_initialized_context(); ret = rcl_init(0, nullptr, &init_options, this->context_ptr); ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; + ret = rcl_init_options_fini(&init_options); + ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; this->node_ptr = new rcl_node_t; *this->node_ptr = rcl_get_zero_initialized_node(); const char * name = "test_count_node";