зеркало из https://github.com/github/putty.git
cmdgen: fix a tiny memory leak.
One of those things you'd never notice if it weren't for Leak Sanitiser happening to be turned on while you were doing something else: freersakey() frees all the things pointed to _from_ an RSAKey structure, but not the structure itself.
This commit is contained in:
Родитель
02dfae7fe4
Коммит
be0b7cee83
1
cmdgen.c
1
cmdgen.c
|
@ -1076,6 +1076,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (ssh1key) {
|
||||
freersakey(ssh1key);
|
||||
sfree(ssh1key);
|
||||
}
|
||||
if (ssh2key) {
|
||||
sfree(ssh2key->comment);
|
||||
|
|
Загрузка…
Ссылка в новой задаче