Closed
Description
I suspect potential memory leaks.
Consider the snippet
kokkos-fft/fft/src/KokkosFFT_Cuda_plans.hpp
Lines 39 to 54 in 4582878
It is called inside the Plan
constructor. Let's assume the second KOKKOSFFT_THROW_IF
actually throws, the backend destroy_plan_and_info
function will never be called because the Plan
object will never finish construction.
I think we need to adhere to the RAII so that if any exception is thrown the backend plan object gets automatically freed.
Metadata
Assignees
Labels
No labels