From: zampolli Date: Wed, 5 Oct 2011 06:44:36 +0000 (+0000) Subject: Coverity fix. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=166b08b99d4642974244662c884f264c922feb66;p=u%2Fmrichter%2FAliRoot.git Coverity fix. --- diff --git a/STEER/STEER/AliGRPPreprocessor.cxx b/STEER/STEER/AliGRPPreprocessor.cxx index 250b99265bd..8d5af0ac73a 100644 --- a/STEER/STEER/AliGRPPreprocessor.cxx +++ b/STEER/STEER/AliGRPPreprocessor.cxx @@ -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) {