From fa1757bee804f93521c9dcd3e259782a1be0c3de Mon Sep 17 00:00:00 2001 From: Abby Xu <30247381+xabxx@users.noreply.github.com> Date: Mon, 20 May 2019 16:12:42 -0700 Subject: [PATCH] fix leak in test_guard_condition (#446) Signed-off-by: Abby Xu --- rcl/test/rcl/test_guard_condition.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rcl/test/rcl/test_guard_condition.cpp b/rcl/test/rcl/test_guard_condition.cpp index 6612d05..b7a56a4 100644 --- a/rcl/test/rcl/test_guard_condition.cpp +++ b/rcl/test/rcl/test_guard_condition.cpp @@ -149,6 +149,7 @@ TEST_F( ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT({ ASSERT_EQ(RCL_RET_OK, rcl_shutdown(&context)); + ASSERT_EQ(RCL_RET_OK, rcl_context_fini(&context)); }); // Try invalid arguments. ret = rcl_guard_condition_init(nullptr, &context, default_options);