diff --git a/sshshare.c b/sshshare.c index 2b2f69a9..1c0e3cba 100644 --- a/sshshare.c +++ b/sshshare.c @@ -502,6 +502,9 @@ static void share_connstate_free(struct ssh_sharing_connstate *cs) sfree(globreq); } + if (cs->sock) + sk_close(cs->sock); + sfree(cs); }