Skip to content

[Bug fix] Plug memory leak in evaluate_basis - #334

Merged
cortner merged 1 commit into
ACEsuit:mainfrom
noeblassel:main
Oct 26, 2026
Merged

cortner merged 1 commit into
ACEsuit:mainfrom
noeblassel:main

Conversation

@noeblassel

Copy link
Copy Markdown
Contributor

This PR fixes the memory leak described in #333 by adding a @no_escape block in evaluate_basis, and adds a unit test for this fix (and only this).

Changes

  • src/models/ace.jl : add a @no_escape block to evaluate_basis
  • test/test_bugs.jl: add a unit test checking for Bumper allocation drift

@noeblassel noeblassel changed the title [Bug fix] Plug the memory leak in https://github.com/ACEsuit/ACEpotentials.jl/issues/333 [Bug fix] Plug memory leak in evaluate_basis Oct 25, 2026
@cortner

cortner commented Oct 25, 2026

Copy link
Copy Markdown
Member

thank you, this is great having a model for how to test this for other components.

@cortner
cortner merged commit 9a9bd6c into ACEsuit:main Oct 26, 2026
4 checks passed
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