* 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

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