summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-06-06 15:16:46 -0400
committerAdam <Adam@anope.org>2012-06-06 15:16:46 -0400
commit3626fb246e3afee7a250f02248254b586f4f3686 (patch)
tree3799c31752c79478debd22cdfc063b9884289d3b
parenta661098ef25e86cf7912650173021cffffdddc03 (diff)
Fixed fd leak in win32/pipe.cpp
-rw-r--r--src/win32/pipe/pipe.cpp1
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);