diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-04-09 14:46:57 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-22 09:09:39 +0200 |
commit | 8f21f879d3ea6e79c10c6f61b3ccf1954295b5e5 (patch) | |
tree | 097335eae7e21d7efc1e08ba764e8b52272f79c8 | |
parent | 67752dabfc206e5459265d0959787dda6c0e1b34 (diff) | |
download | libssh-8f21f879d3ea6e79c10c6f61b3ccf1954295b5e5.tar.gz libssh-8f21f879d3ea6e79c10c6f61b3ccf1954295b5e5.tar.xz libssh-8f21f879d3ea6e79c10c6f61b3ccf1954295b5e5.zip |
session: Fix a memory leak with custom banner.
BUG: https://red.libssh.org/issues/152
(cherry picked from commit b5efbe75cd7b3881618940f9508b313222176bd8)
-rw-r--r-- | src/session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c index 8ec5ca3b..9e7caf02 100644 --- a/src/session.c +++ b/src/session.c @@ -261,6 +261,7 @@ void ssh_free(ssh_session session) { SAFE_FREE(session->banner); SAFE_FREE(session->opts.bindaddr); + SAFE_FREE(session->opts.custombanner); SAFE_FREE(session->opts.username); SAFE_FREE(session->opts.host); SAFE_FREE(session->opts.sshdir); |