Browse Source

fixed memory leak

pull/72/head
orignal 11 years ago
parent
commit
44bba19283
  1. 1
      SSU.cpp
  2. 2
      SSUData.cpp

1
SSU.cpp

@ -859,6 +859,7 @@ namespace ssu
len = 0; len = 0;
fragmentNum++; fragmentNum++;
} }
DeleteI2NPMessage (msg);
} }
void SSUSession::Send (uint8_t type, const uint8_t * payload, size_t len) void SSUSession::Send (uint8_t type, const uint8_t * payload, size_t len)

2
SSUData.cpp

@ -90,6 +90,8 @@ namespace ssu
if (isLast) if (isLast)
{ {
if (!msg)
DeleteI2NPMessage (it->second->msg);
delete it->second; delete it->second;
m_IncomleteMessages.erase (it); m_IncomleteMessages.erase (it);
} }

Loading…
Cancel
Save