mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -05:00
Add further missing delete_callbacks_for_context.
Having explicitly _stated_ in commit 4dcc0fddf
the principle that if
you ever queue a toplevel callback on a freeable object then you
should also call delete_callbacks_for_context on that object before
freeing it, I realised I'd never actually gone through and checked
methodically at every call site of queue_toplevel_callback. So I did,
and naturally, I found several missing ones.
This commit is contained in:
@ -128,6 +128,8 @@ static void sk_handle_close(Socket *s)
|
||||
CloseHandle(hs->recv_H);
|
||||
bufchain_clear(&hs->inputdata);
|
||||
|
||||
delete_callbacks_for_context(hs);
|
||||
|
||||
sfree(hs);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user