Fixed memory leak in RsaConvertKey function.