Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Memory leaks #610

Merged
merged 6 commits into from
Dec 9, 2024
Merged

Bugfix: Memory leaks #610

merged 6 commits into from
Dec 9, 2024

Conversation

gardner48
Copy link
Member

@gardner48 gardner48 commented Dec 6, 2024

  • Fix memory leak when attaching an H-Tol controller to MRIStep
  • Fix memory leak / out of bound array access in Lagrange interpolation module
  • Fix memory leaks in unit tests

@gardner48 gardner48 added this to the SUNDIALS Next milestone Dec 6, 2024
Copy link
Collaborator

@drreynolds drreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes all look good to me, but it would be nice if there existed a unit test to exercise the new "ownership" change for the adaptivity controller.

@gardner48
Copy link
Member Author

These changes all look good to me, but it would be nice if there existed a unit test to exercise the new "ownership" change for the adaptivity controller.

This is already covered by the current unit tests which fail when address sanitizers are enabled because the wrapper is leaked.

Shorten ownership logic

Co-authored-by: Steven Roberts <[email protected]>
Steven-Roberts
Steven-Roberts previously approved these changes Dec 7, 2024
@gardner48 gardner48 merged commit 3d7f3ba into develop Dec 9, 2024
30 checks passed
@gardner48 gardner48 deleted the bugfix/memory-leaks branch December 9, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants