Signed-off-by: Jeremy Cross <jcr...@bomgar.com<mailto:jcr...@bomgar.com>> -- src/session.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/session.c b/src/session.c index c29af1e..f6d926a 100644 --- a/src/session.c +++ b/src/session.c @@ -270,7 +270,9 @@ void ssh_free(ssh_session session) { ssh_list_free(session->opts.identity); } +#ifndef _WIN32 ssh_agent_state_free (session->agent_state); +#endif session->agent_state = NULL; SAFE_FREE(session->auth_auto_state);