mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
fixe memory leak
This commit is contained in:
parent
598d0e216a
commit
266744f640
|
@ -162,7 +162,8 @@ namespace stream
|
|||
|
||||
void Stream::SavePacket (Packet * packet)
|
||||
{
|
||||
m_SavedPackets.insert (packet);
|
||||
if (!m_SavedPackets.insert (packet).second)
|
||||
delete packet;
|
||||
}
|
||||
|
||||
void Stream::ProcessPacket (Packet * packet)
|
||||
|
|
Loading…
Reference in a new issue