]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
remaining coverity fixes
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Sep 2013 14:03:46 +0000 (14:03 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Sep 2013 14:03:46 +0000 (14:03 +0000)
PWGLF/totEt/AliAnalysisEt.cxx
PWGLF/totEt/AliAnalysisEtSelectorPhos.cxx

index 4705e1415d77c0506ba7be4ba6869ca973dd6022..bd8ab3cbabe7da3a019d8b50eda8f37c2b65e2c8 100644 (file)
@@ -213,9 +213,17 @@ void AliAnalysisEt::FillOutputList(TList *list)
     list->Add(fCutFlow);
 
     AliAnalysisManager *man=AliAnalysisManager::GetAnalysisManager();
+    if (!man) {
+      AliFatal("Analysis manager needed");
+      return;
+    }
+
     AliInputEventHandler *inputHandler=dynamic_cast<AliInputEventHandler*>(man->GetInputEventHandler());
-    if (!inputHandler) AliFatal("Input handler needed");
-    
+    if (!inputHandler) {
+      AliFatal("Input handler needed");
+      return;
+    }
+
     //pid response object
     fPIDResponse=inputHandler->GetPIDResponse();
     if (!fPIDResponse) AliError("PIDResponse object was not created");
index aefe6cfb8cc732b1b696c4f018b8b1565b7e9338..df52e5d89fef776cea75dd5204496d6ec09b67d2 100644 (file)
@@ -365,7 +365,7 @@ UInt_t AliAnalysisEtSelectorPhos::GetLabel(const AliESDCaloCluster *cluster, Ali
 //     sure=kFALSE;
 //   else
 //     sure=kTRUE;
-    delete  Ekin;
+    delete [] Ekin;
 
   } // n>0
   return  cluster->GetLabelAt(iMax) ; // DS: should this line be inside n>0 check, and return another value if n<=0 ?