Closed techuan-huang closed 7 months ago
Memory leaks were found by Gene in issue #590. There are 3 places causing the leak in StFstClusterMaker/StFstScanRadiusClusterAlgo.cxx:
StFstClusterMaker/StFstScanRadiusClusterAlgo.cxx
line 55
line 69
line 80
line 140
line 148
line 203
After fixing these places, there is no memory leak from StFstClusterMaker reported by valgrind.
Memory leaks were found by Gene in issue #590. There are 3 places causing the leak in
StFstClusterMaker/StFstScanRadiusClusterAlgo.cxx
:line 55
were not deleted before calling std::vector::pop_back() inline 69
andline 80
.line 140
but only conditionally assigned to a std::vector inline 148
.line 203
, std::vector::erase() was called without deleting the pointers.After fixing these places, there is no memory leak from StFstClusterMaker reported by valgrind.