mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
SSH-1: free mainchan_chan on destruction.
We went through the tree234 of ordinary channels freeing the thing at the other end of each one, but of course in SSH-1 the main session channel is not stored in that tree due to its totally different shape in the protocol. So naturally I forgot to free _that_ one.
This commit is contained in:
parent
128d001c3e
commit
07a43efb1f
@ -197,6 +197,8 @@ static void ssh1_connection_free(PacketProtocolLayer *ppl)
|
||||
while ((c = delpos234(s->channels, 0)) != NULL)
|
||||
ssh1_channel_free(c);
|
||||
freetree234(s->channels);
|
||||
if (s->mainchan_chan)
|
||||
chan_free(s->mainchan_chan);
|
||||
|
||||
if (s->x11disp)
|
||||
x11_free_display(s->x11disp);
|
||||
|
Loading…
Reference in New Issue
Block a user