aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-04-20 13:29:50 +0200
committerAndreas Schneider <mail@cynapses.org>2010-04-20 13:29:50 +0200
commitc53383a3160f3b33fbc60f3665cef5a617735f87 (patch)
tree6933cca00734af585a897ce38dcd319f8e574164 /libssh
parentdfc35699ea4d5537b6e5d92673a97e59f8cf7bb1 (diff)
downloadlibssh-c53383a3160f3b33fbc60f3665cef5a617735f87.tar.gz
libssh-c53383a3160f3b33fbc60f3665cef5a617735f87.tar.xz
libssh-c53383a3160f3b33fbc60f3665cef5a617735f87.zip
session: Fixed a memory leak.
Thanks to Xi Wang for the patch.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/session.c b/libssh/session.c
index ec127f52..1fe1f432 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -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;