mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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:
parent
8b09ae76f1
commit
497fd72e21
1 changed files with 1 additions and 3 deletions
|
@ -1668,8 +1668,6 @@ ReadStream.prototype.destroy = function() {
|
|||
if (this.destroyed)
|
||||
return;
|
||||
this.destroyed = true;
|
||||
|
||||
if (util.isNumber(this.fd))
|
||||
this.close();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue