Skip to content

Conversation

@pmocz
Copy link
Member

@pmocz pmocz commented Jan 29, 2026

adding missing deallocates .. need to wait for tests to pass

I think modern fortran does handle this automatically to prevent memleaks, but explicit deallocates still help with Memory Fragmentation

@pmocz pmocz self-assigned this Jan 29, 2026
@VincentVanlaer
Copy link
Member

According to https://fortran-lang.org/learn/best_practices/allocatable_arrays/, these should be deallocated automatically. I don't really understand how this changes anything w.r.t. fragmentation. The deallocations inserted by the compiler should happen at the exact spot you have inserted them.

@pmocz
Copy link
Member Author

pmocz commented Jan 29, 2026

You're right. I think we don't actually need these. I'll close the PR

@pmocz pmocz closed this Jan 29, 2026
@VincentVanlaer VincentVanlaer deleted the memleaks branch January 30, 2026 12:05
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.

3 participants