]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Oct 2011 06:44:36 +0000 (06:44 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Oct 2011 06:44:36 +0000 (06:44 +0000)
STEER/STEER/AliGRPPreprocessor.cxx

index 250b99265bd489fe3c72cfcb7633303d15b7f2a3..8d5af0ac73abfd31c7e33f78d874568ce7f4d0d0 100644 (file)
@@ -1519,12 +1519,12 @@ UInt_t AliGRPPreprocessor::ProcessDaqFxs()
 
        if (nFiles == 0){
                Log("no raw data tags in this run: it could be that one or more files were found in the DAQ FXS, but they were ignored, since not interesting for the raw data tag: nothing to merge!");
-               if (iter) delete iter;
-               if (list) delete list;
-               if (fRawTagChain){
-                       delete fRawTagChain; 
-                       fRawTagChain=0;
-               }
+               delete iter;
+               iter = 0;
+               delete list;
+               list = 0;
+               delete fRawTagChain; 
+               fRawTagChain=0;
                return 0;
        }
        
@@ -1533,12 +1533,12 @@ UInt_t AliGRPPreprocessor::ProcessDaqFxs()
        
        if (fRawTagChain->Merge(fRawDataFileName) < 1 ) {
                Log(Form("Error merging %d raw data files!!!",nFiles));
-               if (iter) delete iter;
-               if (list) delete list;
-               if (fRawTagChain){
-                       delete fRawTagChain; 
-                       fRawTagChain=0;
-               }
+               delete iter;
+               iter = 0;
+               delete list;
+               list = 0;
+               delete fRawTagChain; 
+               fRawTagChain=0;
                return 3;
        }
                
@@ -1552,7 +1552,9 @@ UInt_t AliGRPPreprocessor::ProcessDaqFxs()
        }
        
        delete iter;
+       iter = 0;
        delete list;
+       list = 0;
        delete fRawTagChain; fRawTagChain=0;
        
        if (result == kFALSE) {