Browse Source

fixed memory leak

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

1
SSU.cpp

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

2
SSUData.cpp

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

Loading…
Cancel
Save