fix leak in test_context (#441)

Signed-off-by: Abby Xu <abbyxu@amazon.com>
This commit is contained in:
Abby Xu 2019-05-17 11:48:58 -07:00 committed by Dirk Thomas
parent 2380a1a3a8
commit 6042af41c7

View file

@ -111,4 +111,7 @@ TEST_F(CLASSNAME(TestContextFixture, RMW_IMPLEMENTATION), nominal) {
}); });
EXPECT_NE(rmw_context_ptr, nullptr) << rcl_get_error_string().str; EXPECT_NE(rmw_context_ptr, nullptr) << rcl_get_error_string().str;
rcl_reset_error(); rcl_reset_error();
ret = rcl_init_options_fini(&init_options);
EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
} }