projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If memory debugging enabled return error on leaks.
[openssl.git]
/
test
/
p5_crpt2_test.c
diff --git
a/test/p5_crpt2_test.c
b/test/p5_crpt2_test.c
index 657d10e7683882845f23df6ea370d2f0275acc5b..2c998bada332365d3ef1eddc53b96ad20c17b544 100644
(file)
--- a/
test/p5_crpt2_test.c
+++ b/
test/p5_crpt2_test.c
@@
-205,8
+205,9
@@
int main(int argc, char **argv)
CRYPTO_cleanup_all_ex_data();
ERR_remove_thread_state(NULL);
ERR_free_strings();
-# ifdef CRYPTO_MDEBUG
- CRYPTO_mem_leaks_fp(stderr);
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
+ if (CRYPTO_mem_leaks_fp(stderr) <= 0)
+ return 1;
# endif
return 0;
}