Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix file descriptor leak
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Oct 15, 2011
1 parent cdb3601 commit 2069a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/stream.c
Expand Up @@ -209,8 +209,8 @@ int uv_accept(uv_stream_t* server, uv_stream_t* client) {
if (uv__stream_open(streamClient, streamServer->accepted_fd,
UV_READABLE | UV_WRITABLE)) {
/* TODO handle error */
streamServer->accepted_fd = -1;
uv__close(streamServer->accepted_fd);
streamServer->accepted_fd = -1;
goto out;
}

Expand Down

0 comments on commit 2069a24

Please sign in to comment.