From 6042af41c7ca791881453ecf5c3e6979c6f49b29 Mon Sep 17 00:00:00 2001 From: Abby Xu <30247381+xabxx@users.noreply.github.com> Date: Fri, 17 May 2019 11:48:58 -0700 Subject: [PATCH] fix leak in test_context (#441) Signed-off-by: Abby Xu --- rcl/test/rcl/test_context.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rcl/test/rcl/test_context.cpp b/rcl/test/rcl/test_context.cpp index 6cdc371..d6648c2 100644 --- a/rcl/test/rcl/test_context.cpp +++ b/rcl/test/rcl/test_context.cpp @@ -111,4 +111,7 @@ TEST_F(CLASSNAME(TestContextFixture, RMW_IMPLEMENTATION), nominal) { }); EXPECT_NE(rmw_context_ptr, nullptr) << rcl_get_error_string().str; rcl_reset_error(); + + ret = rcl_init_options_fini(&init_options); + EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str; }