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:
Simon Tatham 2019-06-28 19:22:39 +01:00
Родитель 02dfae7fe4
Коммит be0b7cee83
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -1076,6 +1076,7 @@ int main(int argc, char **argv)
if (ssh1key) {
freersakey(ssh1key);
sfree(ssh1key);
}
if (ssh2key) {
sfree(ssh2key->comment);