Fix a memory leak in ClientConnection

This commit is contained in:
Francisco Blas (klondike) Izquierdo Riera 2015-01-03 02:07:55 +01:00
parent b30de01b12
commit c05f411ba0

View File

@ -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 ()