]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fixes.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 13:51:06 +0000 (13:51 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 13:51:06 +0000 (13:51 +0000)
STEER/AliRelAlignerKalman.cxx
STEER/AliTrackFitterRieman.cxx

index 99d35bb3b5c491edc0fc36d1290038767e8ba6d6..f5c028d942d965cece41f9f56b19f37643340136 100644 (file)
@@ -1548,6 +1548,7 @@ Int_t AliRelAlignerKalman::FindMatchingTracks(TObjArray& arrITS, TObjArray& arrT
       }//else
     }//for j
   }//for i
+  delete [] matchedArr;
   return iMatched;
 }
 
index 1f69321795e5212c6b9b199737532787336b789c..f08a2fee4b18ed7c4de6470d4e632683270b54d5 100644 (file)
@@ -173,6 +173,10 @@ Bool_t AliTrackFitterRieman::Fit(const TArrayI *volIds,const TArrayI *volIdsFit,
   //  Float_t debugRatio = 1./(1.+debugLevel);
   Float_t debugRatio = debugLevel? 1.0/debugLevel : 1.0;
 
+  if (!fPoints) {
+    AliError("Track points array not available! Exiting...");
+    return kFALSE;
+  }
   Int_t npoints = fPoints->GetNPoints();
   if ( npoints<fMinNPoints) return kFALSE;
   //