diff --git a/ssh.c b/ssh.c index dca0a728..849ddb7f 100644 --- a/ssh.c +++ b/ssh.c @@ -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);