mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Fixed memory leak: delete -> delete[]
This commit is contained in:
parent
3983838694
commit
2c480bee9a
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ namespace data
|
|||
void SaveProfile () { if (m_Profile) m_Profile->Save (); };
|
||||
|
||||
void Update (const uint8_t * buf, int len);
|
||||
void DeleteBuffer () { delete m_Buffer; m_Buffer = nullptr; };
|
||||
void DeleteBuffer () { delete[] m_Buffer; m_Buffer = nullptr; };
|
||||
|
||||
// implements RoutingDestination
|
||||
const IdentHash& GetIdentHash () const { return m_RouterIdentity.GetIdentHash (); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue