fs: fix fd leak in ReadStream.destroy()

PR-URL: https://github.com/iojs/io.js/pull/56
Reviewed-By: Rod Vagg <rod@vagg.org>

See PR for long discussion
This commit is contained in:
Alex Kocharin authored and Rod Vagg committed 2015-01-27 17:06:13 +11:00
1 parent 8b09ae76f1
commit 497fd72e21
1 file changed
+1 -3
+1 -3
View File
@@ -1668,9 +1668,7 @@ ReadStream.prototype.destroy = function() {
if (this.destroyed)
return;
this.destroyed = true;
if (util.isNumber(this.fd))
this.close();
this.close();
};