dh: Fixed a memory leak in ssh_print_hexa.
Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
Этот коммит содержится в:
родитель
61852635b5
Коммит
a016d356fa
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) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user