ros2 / rmw_zenoh

RMW for ROS 2 using Zenoh as the middleware
Apache License 2.0
144 stars 29 forks source link

Fix memory leak in `rmw_publisher` #142

Closed AlexDayCRL closed 3 months ago

AlexDayCRL commented 3 months ago

The msg_bytes capture for the lambda to clean up memory was captured by value which meant it couldn't actually discard the memory. Passing by reference allows the allocator to dealloc the memory.