Skip to content

Fix memory leak in mrdegibbs#2761

Merged
Lestropie merged 2 commits intodevfrom
leakdegibbs
Jan 17, 2024
Merged

Fix memory leak in mrdegibbs#2761
Lestropie merged 2 commits intodevfrom
leakdegibbs

Conversation

@daljit46
Copy link
Member

@daljit46 daljit46 commented Nov 29, 2023

The FFT1D class in core/math/fft.h never called fftw_destroy_plan as documented here. This resulted in a memory leak. This fix calls this function in the destructor of this class, and it also additionally provides a copy assignment operator (to follow the rule of five I have deleted the move constructor and assignment operator).

@daljit46 daljit46 added the bug label Nov 29, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@Lestropie Lestropie merged commit b60b7a5 into dev Jan 17, 2024
@Lestropie Lestropie deleted the leakdegibbs branch January 17, 2024 09:54
@Lestropie Lestropie mentioned this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants