diff --git a/lib/fs.js b/lib/fs.js index 5fb19509e2..6fc0e5f798 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -55,6 +55,7 @@ fs.readFile = function (path, encoding_, callback) { var offset = 0; function doRead() { if (size < 1) { + binding.close(fd); callback(null, buffer); return; }