From aa1e136ea35070c931142a7e12c9333930e75ced Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 5 Aug 2022 12:22:13 +0200 Subject: [PATCH] session: Avoid memory leak of agent_socket from configuration file Thanks oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48268 Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/session.c b/src/session.c index 61b48370..9e1da5cd 100644 --- a/src/session.c +++ b/src/session.c @@ -301,6 +301,7 @@ void ssh_free(ssh_session session) SAFE_FREE(session->banner); SAFE_FREE(session->disconnect_message); + SAFE_FREE(session->opts.agent_socket); SAFE_FREE(session->opts.bindaddr); SAFE_FREE(session->opts.custombanner); SAFE_FREE(session->opts.moduli_file);