aboutsummaryrefslogtreecommitdiff
path: root/libssh/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/session.c b/libssh/session.c
index e8f63361..4117309d 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -97,8 +97,8 @@ void ssh_cleanup(SSH_SESSION *session) {
SAFE_FREE(session->serverbanner);
SAFE_FREE(session->clientbanner);
SAFE_FREE(session->banner);
- buffer_free(session->in_buffer);
- buffer_free(session->out_buffer);
+ buffer_reinit(session->in_buffer);
+ buffer_reinit(session->out_buffer);
crypto_free(session->current_crypto);
crypto_free(session->next_crypto);
ssh_socket_free(session->socket);