aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-01-05 23:05:13 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 16:18:06 +0100
commit7b2e07ecbc1e416d35270f790f843ba4d90fa40a (patch)
tree0ae780cfe279c78c33cb4f1ea6475224d7f235fc
parent0404d45c295c3e9d89a1c803c559b774cc4fcedc (diff)
downloadlibssh-7b2e07ecbc1e416d35270f790f843ba4d90fa40a.tar.gz
libssh-7b2e07ecbc1e416d35270f790f843ba4d90fa40a.tar.xz
libssh-7b2e07ecbc1e416d35270f790f843ba4d90fa40a.zip
session: Fix a possible memory leak.
-rw-r--r--src/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 171779c5..3a607d08 100644
--- a/src/session.c
+++ b/src/session.c
@@ -255,6 +255,7 @@ void ssh_free(ssh_session session) {
ssh_list_free(session->opts.identity);
}
+ SAFE_FREE(session->auth_auto_state);
SAFE_FREE(session->serverbanner);
SAFE_FREE(session->clientbanner);
SAFE_FREE(session->banner);