JeffersonLab / DEMPgen

A Deep Exclusive Meson Production (DEMP) event generator for SoLID and EIC simulations.
GNU General Public License v3.0
1 stars 6 forks source link

Memory Leak Patch #21

Closed sjdkay closed 8 months ago

sjdkay commented 8 months ago

Weizhi Xiong observed a memory leak when processing files with EicC energy combinations.

This is present, but not apparent, in EIC combinations too (likely due to #events cut at certain stages). Relatively simple fix, re-ordering of some null/delete statements and some additional delete statements.

Thanks to Weizhi for this patch.