1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-31 04:44:13 +00:00

fixe memory leak

This commit is contained in:
orignal 2016-03-27 12:06:00 -04:00
parent 598d0e216a
commit 266744f640

View File

@ -162,7 +162,8 @@ namespace stream
void Stream::SavePacket (Packet * packet) void Stream::SavePacket (Packet * packet)
{ {
m_SavedPackets.insert (packet); if (!m_SavedPackets.insert (packet).second)
delete packet;
} }
void Stream::ProcessPacket (Packet * packet) void Stream::ProcessPacket (Packet * packet)