File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ TEST_F(
286286 this ->topic_endpoint_info_array .info_array = new rmw_topic_endpoint_info_t ();
287287 OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT (
288288 {
289- free ( this ->topic_endpoint_info_array .info_array ) ;
289+ delete this ->topic_endpoint_info_array .info_array ;
290290 });
291291 rcl_allocator_t allocator = rcl_get_default_allocator ();
292292 const auto ret = rcl_get_publishers_info_by_topic (
@@ -308,7 +308,7 @@ TEST_F(
308308 this ->topic_endpoint_info_array .info_array = new rmw_topic_endpoint_info_t ();
309309 OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT (
310310 {
311- free ( this ->topic_endpoint_info_array .info_array ) ;
311+ delete this ->topic_endpoint_info_array .info_array ;
312312 });
313313 rcl_allocator_t allocator = rcl_get_default_allocator ();
314314 const auto ret = rcl_get_subscriptions_info_by_topic (
You can’t perform that action at this time.
0 commit comments