Skip to content

fix: Use default rcl allocator if allocator is std::allocator (backport #3069)#3072

Merged
ahcorde merged 1 commit intohumblefrom
mergify/bp/humble/pr-3069
Feb 19, 2026
Merged

fix: Use default rcl allocator if allocator is std::allocator (backport #3069)#3072
ahcorde merged 1 commit intohumblefrom
mergify/bp/humble/pr-3069

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 18, 2026

This fixes a bunch of warnings if using ASAN / valgrind on newer OS versions. It also fixed a real bug, as giving the wrong size on deallocate is undefined behavior according to the C++ standard.

This version of the patch keeps the behavior for users that specified an own allocator the same and in therefore back portable.

Backport of #3058


This is an automatic backport of pull request #3069 done by Mergify.

This fixes a bunch of warnings if using ASAN / valgrind on newer
OS versions. It also fixed a real bug, as giving the wrong size
on deallocate is undefined behavior according to the C++ standard.

This version of the patch keeps the behavior for users that
specified an own allocator the same and in therefore back portable.

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Janosch Machowinski <j.machowinski@cellumation.com>
(cherry picked from commit dc4a1db)
@jmachowinski
Copy link
Collaborator

Pulls: #3072
Gist: https://gist.githubusercontent.com/jmachowinski/296a76840fc10104665a9f8781f307e0/raw/9360609a5679a9190a3e4fe7832cd2f54df0b2ba/ros2.repos
BUILD args:
TEST args:
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18242

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit b21707f into humble Feb 19, 2026
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/humble/pr-3069 branch February 19, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments