From 3626fb246e3afee7a250f02248254b586f4f3686 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Jun 2012 15:16:46 -0400 Subject: [PATCH] Fixed fd leak in win32/pipe.cpp --- src/win32/pipe/pipe.cpp | 1 + 1 file changed, 1 insertion(+) 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);