mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +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:
parent
0ceb73fb10
commit
8c366766ae
2
ssh.c
2
ssh.c
@ -900,6 +900,8 @@ static void ssh_free(Backend *be)
|
|||||||
ssh_gss_cleanup(ssh->gss_state.libs);
|
ssh_gss_cleanup(ssh->gss_state.libs);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
delete_callbacks_for_context(ssh); /* likely to catch ic_out_raw */
|
||||||
|
|
||||||
need_random_unref = ssh->need_random_unref;
|
need_random_unref = ssh->need_random_unref;
|
||||||
sfree(ssh);
|
sfree(ssh);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user