1
1

dh: Fixed a memory leak in ssh_print_hexa.

Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
Этот коммит содержится в:
Andreas Schneider 2011-01-06 14:25:35 +01:00
родитель 61852635b5
Коммит a016d356fa

Просмотреть файл

@ -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) {