X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a7d4653aecbc5a0fb8cd783c0822568631058503..31626f30dc54d636d17cc68560d5118ab23a6078:/ssh.c diff --git a/ssh.c b/ssh.c index e0facac1..8c552b1e 100644 --- a/ssh.c +++ b/ssh.c @@ -7235,12 +7235,14 @@ static void ssh_free(void *handle) sfree(c); } freetree234(ssh->channels); + ssh->channels = NULL; } if (ssh->rportfwds) { while ((pf = delpos234(ssh->rportfwds, 0)) != NULL) sfree(pf); freetree234(ssh->rportfwds); + ssh->rportfwds = NULL; } sfree(ssh->deferred_send_data); if (ssh->x11auth)