projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58cee8
)
Ensure CRYPTO_mem_leaks is the last thing we do
author
Matt Caswell
<matt@openssl.org>
Wed, 9 Mar 2016 00:03:50 +0000
(
00:03
+0000)
committer
Matt Caswell
<matt@openssl.org>
Wed, 9 Mar 2016 01:14:57 +0000
(
01:14
+0000)
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>
test/exptest.c
patch
|
blob
|
history
diff --git
a/test/exptest.c
b/test/exptest.c
index 84d76be403b8ce4a4d0d996f9c7c2546da7c929f..bc023ef67e50d591f9a61ffa0b6a98359dcef929 100644
(file)
--- a/
test/exptest.c
+++ b/
test/exptest.c
@@
-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);