mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
Kernel: Accepting sockets don't need to retain the client sockets.
This is all taken care of by the respective FileDescriptors. Before this patch, we were leaking every single socket, not great!
This commit is contained in:
parent
e48cbf3c8c
commit
6f966ca51d
3 changed files with 0 additions and 3 deletions
|
@ -49,7 +49,6 @@ RetainPtr<Socket> Socket::accept()
|
|||
auto client = m_pending.take_first();
|
||||
ASSERT(!client->is_connected());
|
||||
client->m_connected = true;
|
||||
m_clients.append(client.copy_ref());
|
||||
return client;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue