mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 00:34:20 +00: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…
x
Reference in New Issue
Block a user