Coverity 24323
authormasera <massimo.masera@cern.ch>
Wed, 14 Jan 2015 09:41:34 +0000 (10:41 +0100)
committermasera <massimo.masera@cern.ch>
Wed, 14 Jan 2015 09:41:58 +0000 (10:41 +0100)
ITS/ITSrec/AliITSPreprocessorSDD.cxx

index b73ecc9..9713d03 100644 (file)
@@ -285,6 +285,7 @@ UInt_t AliITSPreprocessorSDD::ProcessInjector(AliITSDDLModuleMapSDD* ddlmap){
        retfscf=fscanf(injFil,"%d",&polDeg);
        if(retfscf<0){
          Log(Form("File %s has bad format.",inpFileName.Data()));
+         fclose(injFil);
          continue;
        }
        while (!feof(injFil)){