Opened 17 years ago
Last modified 13 years ago
#1994 assigned defect
msLoadMap does not properly close map files on parse error — at Initial Version
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | hobu |
Description
We use C# mapscript on Windows and have been seeing behavior where a map file is locked by the process that calls msLoadMap. Thus the file cannot be delete until the process is finished. This is only occurs on parse error, and is because fclose() is not properly called in these circumstances. Attached is a patch which rectifies this by calling fclose() in all circumstances.
Note:
See TracTickets
for help on using tickets.
patch