Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-08-04 12:22:11 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-08-04 12:22:11 +0400
commita5408d982cfc52b39b28d7457ad79bfc50d4ce9a (patch)
tree9ca1bfbab53b3ccba436f236d56c66b314c0fede /winsup/cygwin/net.cc
parent214f86c94b4812b289ed0c052194952e5bc6cb88 (diff)
* net.cc (socketpair): Release sb0 if there's no space left for sb1.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 2e51e6859..eaea766ab 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -2812,6 +2812,8 @@ socketpair (int family, int type, int protocol, int *sb)
sb[1] = sb1;
res = 0;
}
+ else
+ sb0.release ();
}
if (res == -1)