diff options
author | Adam <Adam@anope.org> | 2012-06-06 15:16:46 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-06-06 15:16:46 -0400 |
commit | 3626fb246e3afee7a250f02248254b586f4f3686 (patch) | |
tree | 3799c31752c79478debd22cdfc063b9884289d3b | |
parent | a661098ef25e86cf7912650173021cffffdddc03 (diff) |
Fixed fd leak in win32/pipe.cpp
-rw-r--r-- | src/win32/pipe/pipe.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/pipe/pipe.cpp b/src/win32/pipe/pipe.cpp index f46094c80..36e6ef5ec 100644 --- a/src/win32/pipe/pipe.cpp +++ b/src/win32/pipe/pipe.cpp @@ -45,6 +45,7 @@ int pipe(int fds[2]) } int afd = accept(lfd, NULL, NULL); + close(lfd); if (afd == -1) { close(cfd); |