diff options
author | Peter Volpe <pvolpe@redhat.com> | 2017-04-19 15:10:20 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-04-20 17:04:21 +0200 |
commit | 76ba2b0055e59728cc144319d4961406990d1d79 (patch) | |
tree | bf15446be89409638c2baf8ac9d6bc06d3f2f9c7 /src | |
parent | 68b7ca6e925f5744f5c52c56094041d63789efaa (diff) | |
download | libssh-76ba2b0055e59728cc144319d4961406990d1d79.tar.gz libssh-76ba2b0055e59728cc144319d4961406990d1d79.tar.xz libssh-76ba2b0055e59728cc144319d4961406990d1d79.zip |
session: Free session->kbdint in ssh_free()
Makes sure we free pending keyboard auth prompts
so prompts that have not be replied to do not leak.
Signed-off-by: Peter Volpe <pvolpe@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c index e057cfbe..01773c52 100644 --- a/src/session.c +++ b/src/session.c @@ -257,6 +257,10 @@ void ssh_free(ssh_session session) { ssh_list_free(session->ssh_message_list); } + if (session->kbdint != NULL) { + ssh_kbdint_free(session->kbdint); + } + if (session->packet_callbacks) { ssh_list_free(session->packet_callbacks); } |