From c2f6cebed2bca295c22690342a40569bc133429b Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Tue, 17 Mar 2020 14:06:46 -0300 Subject: [PATCH] Add missing node destruction Signed-off-by: Ivan Santiago Paunovic --- rcl/test/rcl/test_get_node_names.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rcl/test/rcl/test_get_node_names.cpp b/rcl/test/rcl/test_get_node_names.cpp index fd4baf691..0cee1d99c 100644 --- a/rcl/test/rcl/test_get_node_names.cpp +++ b/rcl/test/rcl/test_get_node_names.cpp @@ -157,4 +157,8 @@ TEST_F(CLASSNAME(TestGetNodeNames, RMW_IMPLEMENTATION), test_rcl_get_node_names) ret = rcl_node_fini(node4_ptr); delete node4_ptr; EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; + + ret = rcl_node_fini(node5_ptr); + delete node5_ptr; + EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; }