From a0d3be8744be3409b6cdcd26efe3ccf22a8784e1 Mon Sep 17 00:00:00 2001 From: mariana Date: Sat, 10 Feb 2001 22:29:24 +0000 Subject: [PATCH] Correct memory leaks in ClusterFinder --- ITS/AliITSClusterFinderSPDbari.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ITS/AliITSClusterFinderSPDbari.cxx b/ITS/AliITSClusterFinderSPDbari.cxx index c47621d5791..c7cd04d3b9f 100644 --- a/ITS/AliITSClusterFinderSPDbari.cxx +++ b/ITS/AliITSClusterFinderSPDbari.cxx @@ -364,11 +364,15 @@ void AliITSClusterFinderSPDbari::ClusterFinder(Int_t ndigits, AliITSRawClusterSPD *clust = new AliITSRawClusterSPD(zcenter[i],xcenter[i],1.,ndz,ndx,0.,0.,0.,0.,0.,0.,0.); iTS->AddCluster(0,clust); + delete clust; } delete[] ifpad; delete[] xpad ; delete[] zpad ; delete[] iclus; + delete [] tr1pad; + delete [] tr2pad; + delete [] tr3pad; } //______________________________________________________ void AliITSClusterFinderSPDbari::DigitToPoint(Int_t nclus, @@ -411,4 +415,6 @@ void AliITSClusterFinderSPDbari::DigitToPoint(Int_t nclus, iTS->AddRecPoint(rnew); } + + } -- 2.31.1