]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 0afae0fcc27b1106d2b6642db33fa9d822164c85..6be4ad3cf85a519e5a13b2da4b8090240021b64d 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;
     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);
       return(1);
     }
     gdcSize=Root2Date(rootEvent, dateEvent, command);