1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

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 <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2022-08-05 12:22:13 +02:00
parent a07ec441fd
commit aa1e136ea3

View File

@@ -301,6 +301,7 @@ void ssh_free(ssh_session session)
SAFE_FREE(session->banner); SAFE_FREE(session->banner);
SAFE_FREE(session->disconnect_message); SAFE_FREE(session->disconnect_message);
SAFE_FREE(session->opts.agent_socket);
SAFE_FREE(session->opts.bindaddr); SAFE_FREE(session->opts.bindaddr);
SAFE_FREE(session->opts.custombanner); SAFE_FREE(session->opts.custombanner);
SAFE_FREE(session->opts.moduli_file); SAFE_FREE(session->opts.moduli_file);