1
0
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:
Andreas Schneider
2011-01-06 14:25:35 +01:00
parent 61852635b5
commit a016d356fa

View File

@@ -221,6 +221,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) {