X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ssh.c;h=8c552b1e6305f97729d16c05970f40946b197b30;hb=6ef62aacfc5108355532ce82dc8eae7b7dc70e39;hp=e0facac1ae99f968768a085fad4e367b10721bfe;hpb=9731b1425d93c85e6b5b4134b748cad55099c90b;p=PuTTY.git 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)