Skip to content

grid_map_sdf: fix planar SDF memory leak#529

Open
Idate96 wants to merge 1 commit intoANYbotics:jazzyfrom
Idate96:fix/memory_leak
Open

grid_map_sdf: fix planar SDF memory leak#529
Idate96 wants to merge 1 commit intoANYbotics:jazzyfrom
Idate96:fix/memory_leak

Conversation

@Idate96
Copy link
Copy Markdown

@Idate96 Idate96 commented Dec 12, 2025

leak in SignedDistanceField::getPlanarSignedDistanceField(): the temporary distance_transform::image and the dt() output were allocated with new and never freed. This switches to RAII (stack allocation + std::unique_ptr) so repeated SDF recomputation doesn't grow memory.

@mergify mergify bot mentioned this pull request Dec 12, 2025
@Ryanf55
Copy link
Copy Markdown
Collaborator

Ryanf55 commented Apr 17, 2026

HI, can you please retarget this to rolling? LGTM.

@Ryanf55 Ryanf55 added bug ros2 Affects ROS 2 labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ros2 Affects ROS 2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants