Bug fixed in deleting pointers.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 14:12:05 +0000 (14:12 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 14:12:05 +0000 (14:12 +0000)
SHUTTLE/AliShuttle.cxx

index 33da890..d6db2a5 100644 (file)
@@ -3331,12 +3331,6 @@ Bool_t AliShuttle::TouchFile()
                Bool_t boolMkdir = gGrid->Mkdir(dir.Data());
                if (!boolMkdir) {
                        Log("SHUTTLE",Form("Impossible to create dir %s in alien catalogue for run %i!",dir.Data(),GetCurrentRun()));
-                       if (valueLsPath) {
-                               delete valueLsPath;
-                               valueLsPath = 0x0;
-                       }
-                       delete mapLs;
-                       mapLs = 0x0;
                        delete resultLs;
                        resultLs = 0x0;
                        return kFALSE;
@@ -3347,10 +3341,6 @@ Bool_t AliShuttle::TouchFile()
                Log("SHUTTLE",Form("Directory %s correctly found for run %i",dir.Data(),GetCurrentRun()));
        }
 
-       delete valueLsPath;
-       valueLsPath = 0x0;
-       delete mapLs;
-       mapLs = 0x0;
        delete resultLs;
        resultLs = 0x0;
 
@@ -3372,26 +3362,16 @@ Bool_t AliShuttle::TouchFile()
        TObjString *valueTouch = dynamic_cast<TObjString*>(mapTouch->GetValue("__result__"));
        if (!valueTouch){
                Log("SHUTTLE",Form("No value for \"__result__\" key set in the map for touching command, returning without touching for run %i",GetCurrentRun()));
-               delete mapTouch;
-               mapTouch = 0x0; 
                delete resultTouch;
                resultTouch = 0x0; 
                return kFALSE;
        }
        if (valueTouch->GetString()!="1"){
                Log("SHUTTLE",Form("Failing the touching command, returning without touching for run %i",GetCurrentRun()));
-               delete valueTouch;
-               valueTouch = 0x0; 
-               delete mapTouch;
-               mapTouch = 0x0; 
                delete resultTouch;
                resultTouch = 0x0; 
                return kFALSE;
        }
-       delete valueTouch;
-       valueTouch = 0x0; 
-       delete mapTouch;
-       mapTouch = 0x0; 
        delete resultTouch;
        resultTouch = 0x0; 
        return kTRUE;