CFD-GO / TCLB

TCLB - Templated MPI+CUDA/CPU Lattice Boltzmann code
https://tclb.io
GNU General Public License v3.0
178 stars 70 forks source link

Memory leak #451

Closed kubagalecki closed 10 months ago

kubagalecki commented 11 months ago

attr is never freed:

https://github.com/CFD-GO/TCLB/blob/5cdc2df782f1528e99822b24479199a27ec70ad6/src/LatticeContainer.inc.cpp.Rt#L64-L78

There's also no reason to allocate it dynamically, as far as I can tell.

llaniewski commented 11 months ago

Just patch it and PR to develop branch.

kubagalecki commented 10 months ago

Closed in #455