mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
dh: Fixed a memory leak in ssh_print_hexa.
Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
This commit is contained in:
2
src/dh.c
2
src/dh.c
@@ -221,6 +221,8 @@ void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
printf("%s: %s\n", descr, hexa);
|
printf("%s: %s\n", descr, hexa);
|
||||||
|
|
||||||
|
free(hexa);
|
||||||
}
|
}
|
||||||
|
|
||||||
int dh_generate_x(ssh_session session) {
|
int dh_generate_x(ssh_session session) {
|
||||||
|
|||||||
Reference in New Issue
Block a user