mirror of https://github.com/openssl/openssl
Ensure BIGNUM is freed in an error path
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
fe2b7dfdf4
commit
5bf7c7725b
|
@ -119,9 +119,8 @@ int prime_main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
BN_free(bn);
|
||||
|
||||
ret = 0;
|
||||
end:
|
||||
BN_free(bn);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue