* net.cc (socketpair): Release sb0 if there's no space left for sb1.

This commit is contained in:
Corinna Vinschen 2011-08-04 08:22:11 +00:00
parent 214f86c94b
commit a5408d982c
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-08-04 Corinna Vinschen <corinna@vinschen.de>
* net.cc (socketpair): Release sb0 if there's no space left for sb1.
2011-08-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* cygwin.din (clock_nanosleep): Export.

View File

@ -2812,6 +2812,8 @@ socketpair (int family, int type, int protocol, int *sb)
sb[1] = sb1;
res = 0;
}
else
sb0.release ();
}
if (res == -1)