minor fix for a bug which happen on error handling code and doesn't look like it could have caused any real harm (fd number wouldn't have been reused yet) (cherry picked from commit 04a0af90)
Attach a file by drag & drop or click to upload