Coverity 17326 Non-array delete for scalars
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Jul 2011 08:17:21 +0000 (08:17 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Jul 2011 08:17:21 +0000 (08:17 +0000)
Corrected.

EVGEN/AliGenCorrHF.cxx

index 8e9c11beab75183222b07232066de6e093ef2e6b..7102b20df28e1eeaf663dc70dfa844932140142f 100644 (file)
@@ -587,8 +587,8 @@ void AliGenCorrHF::Generate()
   delete particleshad2;
   delete particleslist;
  
-  delete pSelected;
-  delete trackIt;
+  delete[] pSelected;
+  delete[] trackIt;
 }
 //____________________________________________________________________________________
 void AliGenCorrHF::IpCharm(TH2F *hProbHH, Int_t &pdg3, Int_t &pdg4)