From c05f411ba077db64e691e512ab721a05ffe07564 Mon Sep 17 00:00:00 2001 From: "Francisco Blas (klondike) Izquierdo Riera" Date: Sat, 3 Jan 2015 02:07:55 +0100 Subject: [PATCH] Fix a memory leak in ClientConnection --- I2PTunnel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index d083ba6a..5a5b88f7 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -188,7 +188,9 @@ namespace client m_Acceptor.close(); m_Timer.cancel (); ClearConnections (); + auto *originalIdentHash = m_DestinationIdentHash; m_DestinationIdentHash = nullptr; + delete originalIdentHash; } void I2PClientTunnel::Accept ()