Coverity
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 13:39:25 +0000 (13:39 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 13:39:25 +0000 (13:39 +0000)
EVE/EveBase/AliEveKink.cxx
EVE/EveBase/AliEveLego.cxx

index 4d5c39a..8bf583c 100644 (file)
@@ -69,8 +69,7 @@ AliEveKink::AliEveKink(TEveRecTrack* tMoth, TEveRecTrack* tDaug,
   fMotherTrack->SetLineColor(2);  // red
   fMotherTrack->SetStdTitle();
   fMotherTrack->SetLineWidth(3);
-  TEvePathMark* pmM = 0;
-  pmM = new TEvePathMark(TEvePathMark::kDecay);
+  TEvePathMark* pmM = new TEvePathMark(TEvePathMark::kDecay);
   pmM->fV.Set(kink->fVKink);
   fMotherTrack->AddPathMark(*pmM);
 
@@ -82,6 +81,7 @@ AliEveKink::AliEveKink(TEveRecTrack* tMoth, TEveRecTrack* tDaug,
   AddElement(fMotherTrack);
   fDaughterTrack->IncDenyDestroy();
   AddElement(fDaughterTrack);
+  delete pmM;
 }
 
 //______________________________________________________________________________
index 220bcb1..c708a9a 100644 (file)
@@ -861,7 +861,7 @@ Float_t AliEveLego::GetPtMaxAE()
 Int_t AliEveLego::GetParticleType(AliESDtrack *track)
 {
   // Determine the particle type
-  Double_t *prob = new Double_t[5];
+       Double_t prob[5]={0.};
   track->GetESDpid(prob);
 
   Double_t max = prob[0];