fix missing FreeRsaKey on error.