mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00: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 ()
|
||||||
|
|||||||
Reference in New Issue
Block a user