mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
session: Fixed a memory leak.
Thanks to Xi Wang for the patch.
This commit is contained in:
@@ -209,6 +209,9 @@ void ssh_free(ssh_session session) {
|
||||
ssh_list_free(session->ssh_message_list);
|
||||
}
|
||||
|
||||
if (session->packet_callbacks)
|
||||
ssh_list_free(session->packet_callbacks);
|
||||
|
||||
if (session->identity) {
|
||||
char *id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user