Don't close file handle if a file write error; (caller does the close)

Fixes "USE_AFTER_FREE" defect reported by Coverity Prevent.

svn path=/trunk/; revision=36226
This commit is contained in:
Bill Meier 2011-03-21 17:07:18 +00:00
parent f09b320711
commit f7d44fa268
1 changed files with 5 additions and 6 deletions

View File

@ -182,7 +182,6 @@ struct option {
} else { \
*error_pointer = 0; \
} \
fclose(file_pointer); \
return FALSE; \
} \
written_length += (long)nwritten; \