mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fixed memory leak
This commit is contained in:
parent
4f429b3e06
commit
44bba19283
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…
Reference in New Issue
Block a user