Coverity fixes.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 14:00:41 +0000 (14:00 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 14:00:41 +0000 (14:00 +0000)
MONITOR/deroot.cxx

index 0afae0f..6be4ad3 100644 (file)
@@ -63,6 +63,8 @@ int deroot(const char *rootFileName, const char *dateFileName, const char *ddlFi
     snprintf(command, sizeof(command), "%s/raw%ld", ddlFilesFolder, gdcCounter);
     if (gSystem->MakeDirectory(command) < 0) {
       cerr << "Can not create directory " << command << endl;
+      fclose(dateFile);
+      delete [] dateEvent;
       return(1);
     }
     gdcSize=Root2Date(rootEvent, dateEvent, command);