]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- Coverity fixes
authorbhess <bhess@cern.ch>
Fri, 9 Jan 2015 07:13:52 +0000 (08:13 +0100)
committermorsch <andreas.morsch@cern.ch>
Fri, 9 Jan 2015 12:48:36 +0000 (13:48 +0100)
PWGPP/TPC/AliTPCPIDBase.cxx
PWGPP/TPC/AliTPCcalibResidualPID.cxx

index 4f6f53f3849684068ad51354e8ef698d6e0a3c59..c0c72bbebcc984d593a44cee70f7d95c34f50512 100644 (file)
@@ -134,11 +134,11 @@ AliTPCPIDBase::~AliTPCPIDBase()
   delete fV0KineCuts;
   fV0KineCuts = 0;
   
-  delete fV0tags;
+  delete [] fV0tags;
   fV0tags = 0;
   fNumTagsStored = 0;
   
-  delete fV0motherIndex;
+  delete [] fV0motherIndex;
   fV0motherIndex = 0;
 }
 
@@ -411,10 +411,10 @@ void AliTPCPIDBase::ClearV0PIDlist()
   // Clear the PID tag list
   //
 
-  delete fV0tags;
+  delete [] fV0tags;
   fV0tags = 0;
   
-  delete fV0motherIndex;
+  delete [] fV0motherIndex;
   fV0motherIndex = 0;
   
   fNumTagsStored = 0;
index 366c3e948e5dcb88e241adf72f104c115d1d7dc3..915196d466a8c4a340dfc47ede7fbb06e10d71a7 100644 (file)
@@ -245,14 +245,14 @@ AliTPCcalibResidualPID::~AliTPCcalibResidualPID()
   delete fV0KineCuts;
   fV0KineCuts = 0;
   
-  delete fV0tags;
+  delete [] fV0tags;
   fV0tags = 0;
   fNumTagsStored = 0;
   
-  delete fV0motherIndex;
+  delete [] fV0motherIndex;
   fV0motherIndex = 0;
   
-  delete fV0motherPDG;
+  delete [] fV0motherPDG;
   fV0motherPDG = 0;
 }
 
@@ -3864,13 +3864,13 @@ void AliTPCcalibResidualPID::ClearV0PIDlist()
   // Clear the PID tag list
   //
 
-  delete fV0tags;
+  delete [] fV0tags;
   fV0tags = 0;
   
-  delete fV0motherIndex;
+  delete [] fV0motherIndex;
   fV0motherIndex = 0;
   
-  delete fV0motherPDG;
+  delete [] fV0motherPDG;
   fV0motherPDG = 0;
   
   fNumTagsStored = 0;