mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +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);
|
ssh_list_free(session->ssh_message_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (session->packet_callbacks)
|
||||||
|
ssh_list_free(session->packet_callbacks);
|
||||||
|
|
||||||
if (session->identity) {
|
if (session->identity) {
|
||||||
char *id;
|
char *id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user