mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
fixed memory leak
This commit is contained in:
parent
b1b5904852
commit
2e8fa88fcb
4 changed files with 15 additions and 7 deletions
5
SSU.cpp
5
SSU.cpp
|
@ -159,6 +159,11 @@ namespace transport
|
|||
m_Relays[tag] = relay;
|
||||
}
|
||||
|
||||
void SSUServer::RemoveRelay (uint32_t tag)
|
||||
{
|
||||
m_Relays.erase (tag);
|
||||
}
|
||||
|
||||
std::shared_ptr<SSUSession> SSUServer::FindRelaySession (uint32_t tag)
|
||||
{
|
||||
auto it = m_Relays.find (tag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue