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 8e9c11b..7102b20 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)