Skip to content

Add AStarSearch RAII destructor, document FSA contract, and add tests - #46

Merged
justinhj merged 1 commit into
masterfrom
fix-double-free
Sep 30, 2026
Merged

justinhj merged 1 commit into
masterfrom
fix-double-free

Conversation

@justinhj

Copy link
Copy Markdown
Owner
  • Add ~AStarSearch() to automatically clean up solution or active nodes and ensure UserState destructors execute on scope exit
  • Document FixedSizeAllocator contract regarding lack of used-list and caller-managed object destruction
  • Repurpose DestructorTracker in tests.cpp to verify RAII cleanup for both completed and interrupted searches

- Add ~AStarSearch() to automatically clean up solution or active nodes and ensure UserState destructors execute on scope exit
- Document FixedSizeAllocator contract regarding lack of used-list and caller-managed object destruction
- Repurpose DestructorTracker in tests.cpp to verify RAII cleanup for both completed and interrupted searches
@justinhj
justinhj merged commit 60f467b into master Sep 30, 2026
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.

1 participant