use RSA_free to free key

fixes cppcheck warning: Size of pointer used instead of size of its data
This commit is contained in:
xfnw 2022-06-20 21:26:56 -04:00
parent 07c0aec7d8
commit e502e75d0e

View file

@ -47,7 +47,7 @@ void nodumps()
void byebye(int sig)
{
memset(rsa, 0, sizeof rsa);
RSA_free(rsa);
exit(0);
}