mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Ensure CRYPTO_mem_leaks is the last thing we do
CRYPTO_mem_leaks de-inits the library, so we must not do anything interesting after we've used it! Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
f58cee8fb4
commit
bfd53c32cd
@ -297,6 +297,9 @@ int main(int argc, char *argv[])
|
||||
BN_free(m);
|
||||
BN_CTX_free(ctx);
|
||||
|
||||
if (test_exp_mod_zero() != 0)
|
||||
goto err;
|
||||
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
|
||||
if (CRYPTO_mem_leaks(out) <= 0)
|
||||
goto err;
|
||||
@ -304,9 +307,6 @@ int main(int argc, char *argv[])
|
||||
BIO_free(out);
|
||||
printf("\n");
|
||||
|
||||
if (test_exp_mod_zero() != 0)
|
||||
goto err;
|
||||
|
||||
printf("done\n");
|
||||
|
||||
EXIT(0);
|
||||
|
Loading…
Reference in New Issue
Block a user