Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ros2/rmw_zenoh
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8dd9bf50e8c3169cacf75a3bcb98539982dd8855
Choose a base ref
..
head repository: ros2/rmw_zenoh
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bcc36a1b98ed3ac27db1588828500fd196c6d093
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp
4 changes: 2 additions & 2 deletions rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp
Original file line number Diff line number Diff line change
@@ -235,8 +235,8 @@ rmw_ret_t PublisherData::publish(
msg_bytes = serialization_buffer.data;
}

auto delete_msg_bytes = rcpputils::make_scope_exit(
[&allocator, &msg_bytes, &serialization_buffer]() {
auto always_free_msg_bytes = rcpputils::make_scope_exit(
[&msg_bytes, &allocator, &serialization_buffer]() {
if (serialization_buffer.data == nullptr) {
allocator.deallocate(msg_bytes, allocator.state);
}