mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
Fix a memory leak in ClientConnection
This commit is contained in:
parent
b30de01b12
commit
c05f411ba0
@ -188,7 +188,9 @@ namespace client
|
|||||||
m_Acceptor.close();
|
m_Acceptor.close();
|
||||||
m_Timer.cancel ();
|
m_Timer.cancel ();
|
||||||
ClearConnections ();
|
ClearConnections ();
|
||||||
|
auto *originalIdentHash = m_DestinationIdentHash;
|
||||||
m_DestinationIdentHash = nullptr;
|
m_DestinationIdentHash = nullptr;
|
||||||
|
delete originalIdentHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
void I2PClientTunnel::Accept ()
|
void I2PClientTunnel::Accept ()
|
||||||
|
Loading…
Reference in New Issue
Block a user