joyent/node — pull request #7698 by cjihrig (2014-05-28 22:41:20+00:00)
Title: fs: close file if fstat() fails in readFile()

Currently, if `fstat()` fails in readFile(), the callback is invoked without closing the file. This commit closes the file before calling back.

Closes #7697
@piscisaureus