Added missing TFile::Close() calls.
authorjniedzie <jeremi.niedziela@cern.ch>
Tue, 11 Nov 2014 07:38:10 +0000 (08:38 +0100)
committerjniedzie <jeremi.niedziela@cern.ch>
Tue, 11 Nov 2014 07:38:23 +0000 (08:38 +0100)
MONITOR/alistoragemanager/AliStorageDatabase.cxx
MONITOR/alistoragemanager/AliStorageServerThread.cxx

index 46015b8..df94223 100644 (file)
@@ -210,8 +210,9 @@ AliESDEvent* AliStorageDatabase::GetEvent(struct eventStruct event)
        data = (AliESDEvent*)gDirectory->Get(Form("event%d;1",event.eventNumber));
 
 
-       //      tmpFile->GetObject(Form("event%d;1",event.eventNumber),data);
-
+    tmpFile->Close();
+    delete tmpFile;
+    
        return data;
 }
 
index e64e2dc..368a94a 100644 (file)
@@ -147,7 +147,7 @@ bool AliStorageServerThread::MarkEvent(struct eventStruct event)
   if(!eventToMark)
     {
       cout<<"SERVER -- couldn't find such event"<<endl;
-      if(tmpFile){delete tmpFile;}
+        if(tmpFile){tmpFile->Close();delete tmpFile;}
       return false;
     }
   cout<<"SERVER -- Marking event:"<<eventToMark->GetEventNumberInFile()<<endl;
@@ -157,7 +157,7 @@ bool AliStorageServerThread::MarkEvent(struct eventStruct event)
   if(!permFile)
     {
       cout<<"SERVER -- Couldn't open perm file"<<endl;
-      if(tmpFile){delete tmpFile;}
+        if(tmpFile){tmpFile->Close();delete tmpFile;}
       if(eventToMark){delete eventToMark;}
       return false;
     }