mirror of
https://github.com/anope/anope.git
synced 2026-07-10 13:23:14 +02:00
Fixed fd leak in win32/pipe.cpp
This commit is contained in:
@@ -45,6 +45,7 @@ int pipe(int fds[2])
|
||||
}
|
||||
|
||||
int afd = accept(lfd, NULL, NULL);
|
||||
close(lfd);
|
||||
if (afd == -1)
|
||||
{
|
||||
close(cfd);
|
||||
|
||||
Reference in New Issue
Block a user