diff --git a/ssh2connection.c b/ssh2connection.c index 925b5ec9..163cc5c9 100644 --- a/ssh2connection.c +++ b/ssh2connection.c @@ -310,6 +310,8 @@ static void ssh2_connection_free(PacketProtocolLayer *ppl) } portfwdmgr_free(s->portfwdmgr); + delete_callbacks_for_context(s); + sfree(s); }