SixTrack / sixtracklib

Library for single charged particle simulations in accelerators
GNU Lesser General Public License v2.1
12 stars 16 forks source link

cuda: fixes resource leak in CudaArgument class #106

Closed martinschwinzerl closed 4 years ago

martinschwinzerl commented 4 years ago

Fixes a resource leak in the CudaArgument class (memory allocated on devices did not get free'd properly unless the calling program itself was terminated -> this should work now). Sorry for the bug and thanks to @aoeftiger for his help in finding it

aoeftiger commented 4 years ago

The memory leak for a trackjob simulation set up within a python loop is resolved with this fix.

Thanks a ton @martinschwinzerl !!