diff options
author | Andreas Schneider <asn@cynapses.org> | 2011-01-06 14:25:35 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2011-01-07 15:47:18 +0100 |
commit | 0b1f8a2b0c407c1bd68ca049b54084f7850a6d47 (patch) | |
tree | dd0d80f53202c61cae899973130e66d9bbeb6204 | |
parent | 8d676c77b14d2eba57606740f359e314fbe241be (diff) | |
download | libssh-0b1f8a2b0c407c1bd68ca049b54084f7850a6d47.tar.gz libssh-0b1f8a2b0c407c1bd68ca049b54084f7850a6d47.tar.xz libssh-0b1f8a2b0c407c1bd68ca049b54084f7850a6d47.zip |
dh: Fixed a memory leak in ssh_print_hexa.
Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
(cherry picked from commit a016d356fac59e010bef036bb7696b311bbd642a)
-rw-r--r-- | libssh/dh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/dh.c b/libssh/dh.c index 09d09892..3397a6e1 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -222,6 +222,8 @@ void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) { return; } printf("%s: %s\n", descr, hexa); + + free(hexa); } int dh_generate_x(ssh_session session) { |