mirror of https://github.com/openssl/openssl.git
coverity 1462574 Resource leak
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
parent
5e12a13af7
commit
ba61a0e60f
|
|
@ -376,6 +376,7 @@ static void *rsa_gen_init(void *provctx, int selection)
|
|||
if ((gctx->pub_exp = BN_new()) == NULL
|
||||
|| !BN_set_word(gctx->pub_exp, RSA_F4)) {
|
||||
BN_free(gctx->pub_exp);
|
||||
OPENSSL_free(gctx);
|
||||
gctx = NULL;
|
||||
} else {
|
||||
gctx->nbits = 2048;
|
||||
|
|
|
|||
Loading…
Reference in New Issue