Memory leaks corrected (Ch. Klein-Boesing)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jan 2007 11:50:15 +0000 (11:50 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jan 2007 11:50:15 +0000 (11:50 +0000)
JETAN/AliJetKineReader.cxx

index fd04b6b..13280ea 100644 (file)
@@ -198,9 +198,13 @@ Bool_t AliJetKineReader::FillMomentumArray(Int_t event)
   }
 
   // set the signal flags
-  fSignalFlag.Set(goodTrack,sflag);
-  fCutFlag.Set(goodTrack,cflag);
+  fSignalFlag.Set(goodTrack, sflag);
+  fCutFlag.Set(goodTrack, cflag);
   printf("\nIn event %d, number of good tracks %d \n", event, goodTrack);
+  
+  delete[] sflag;
+  delete[] cflag;
+  
   return kTRUE;
 }
 
@@ -281,5 +285,7 @@ Bool_t AliJetKineReader::GetGenJets(AliJet* genJets)
     genJets->SetNinput(nj);
     genJets->SetMultiplicities(m);
     genJets->SetInJet(k);
+    delete[] k;
+    delete[] m;
     return kTRUE;
 }