fixed memory leak

This commit is contained in:
orignal 2014-05-04 18:57:26 -04:00
parent 4f429b3e06
commit 44bba19283
2 changed files with 3 additions and 0 deletions

View File

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

View File

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