Skip to content

Commit 9435ea9

Browse files
committed
Fix memory leak in test_publisher, test msg not released (#469)
Signed-off-by: y-okumura-isp <[email protected]>
1 parent 7537f83 commit 9435ea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rcl/test/rcl/test_publisher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ TEST_F(CLASSNAME(TestPublisherFixture, RMW_IMPLEMENTATION), test_publishers_diff
168168
test_msgs__msg__Strings__init(&msg_string);
169169
ASSERT_TRUE(rosidl_generator_c__String__assign(&msg_string.string_value, "testing"));
170170
ret = rcl_publish(&publisher_in_namespace, &msg_string, nullptr);
171+
test_msgs__msg__Strings__fini(&msg_string);
171172
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
172173
}
173174

0 commit comments

Comments
 (0)