* net.cc (socketpair): Release sb0 if there's no space left for sb1.
This commit is contained in:
parent
214f86c94b
commit
a5408d982c
|
@ -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.
|
||||
|
|
|
@ -2812,6 +2812,8 @@ socketpair (int family, int type, int protocol, int *sb)
|
|||
sb[1] = sb1;
|
||||
res = 0;
|
||||
}
|
||||
else
|
||||
sb0.release ();
|
||||
}
|
||||
|
||||
if (res == -1)
|
||||
|
|
Loading…
Reference in New Issue