* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28500 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-11-04 16:05:38 +00:00
parent 21b2687fab
commit 77817877ce

View File

@ -119,16 +119,14 @@ create_socket(int family, int type, int protocol, net_socket_private **_socket)
link));
status_t status = get_domain_protocols(socket);
if (status < B_OK)
goto err2;
if (status < B_OK) {
mutex_destroy(&socket->lock);
delete socket;
return status;
}
*_socket = socket;
return B_OK;
err2:
mutex_destroy(&socket->lock);
delete socket;
return status;
}