Opened 20 years ago
Last modified 20 years ago
#598 closed defect (fixed)
GXFOpen let the file opened when fails
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
in gdal/frmts/gxf/gxfopen.c if GXFOpen fails the function returns directly without close the opened file in binary mode "fp" : /* -------------------------------------------------------------------- */ /* Did we find the #GRID? */ /* -------------------------------------------------------------------- */ if( !EQUALN(szTitle,"#GRID",5) ) { CPLError( CE_Failure, CPLE_WrongFormat, "Didn't parse through to #GRID successfully in.\n" "file `%s'.\n", pszFilename ); return NULL; } Maybe just add a GXFClose before the return solve the problem... Julien
Note:
See TracTickets
for help on using tickets.