session: Fixed a memory leak.

Thanks to Xi Wang for the patch.
This commit is contained in:
Andreas Schneider
2010-04-20 13:29:50 +02:00
parent dfc35699ea
commit c53383a316

View File

@@ -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;