We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 749873c commit 68bf547Copy full SHA for 68bf547
1 file changed
src/pk/rsa/rsa_make_key.c
@@ -97,7 +97,7 @@ int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key)
97
err = CRYPT_OK;
98
goto cleanup;
99
errkey:
100
- mp_clear_multi(key->q, key->p, key->qP, key->dP, key->dQ, key->N, key->d, key->e, NULL);
+ rsa_free(key);
101
cleanup:
102
mp_clear_multi(tmp3, tmp2, tmp1, q, p, NULL);
103
return err;
0 commit comments