mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
fixed memory leak
This commit is contained in:
parent
4f429b3e06
commit
44bba19283
2 changed files with 3 additions and 0 deletions
1
SSU.cpp
1
SSU.cpp
|
@ -859,6 +859,7 @@ namespace ssu
|
|||
len = 0;
|
||||
fragmentNum++;
|
||||
}
|
||||
DeleteI2NPMessage (msg);
|
||||
}
|
||||
|
||||
void SSUSession::Send (uint8_t type, const uint8_t * payload, size_t len)
|
||||
|
|
|
@ -90,6 +90,8 @@ namespace ssu
|
|||
|
||||
if (isLast)
|
||||
{
|
||||
if (!msg)
|
||||
DeleteI2NPMessage (it->second->msg);
|
||||
delete it->second;
|
||||
m_IncomleteMessages.erase (it);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue