1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

ssh.c: add a missing delete_callbacks_for_context.

If an Ssh structure is destroyed while its IdempotentCallback
ssh->ic_out_raw is prnding, then the latter will stay on callback.c's
list pointing at the freed memory.
This commit is contained in:
Simon Tatham 2019-03-03 06:55:12 +00:00
parent 0ceb73fb10
commit 8c366766ae

2
ssh.c
View File

@ -900,6 +900,8 @@ static void ssh_free(Backend *be)
ssh_gss_cleanup(ssh->gss_state.libs);
#endif
delete_callbacks_for_context(ssh); /* likely to catch ic_out_raw */
need_random_unref = ssh->need_random_unref;
sfree(ssh);