* net.cc (socketpair): Release sb0 if there's no space left for sb1.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user