summaryrefslogtreecommitdiffstats
path: root/test/ecdsatest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-14 22:00:03 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-02-05 16:02:21 +0000
commit541e9565bb5b860e9e0b5faeb5d474deeaef743b (patch)
tree5fa066496061cc850728f0e0790e48810f19c8ae /test/ecdsatest.c
parentcc5a9ba485b988b036974cf682cda35180788446 (diff)
If memory debugging enabled return error on leaks.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ecdsatest.c')
-rw-r--r--test/ecdsatest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ecdsatest.c b/test/ecdsatest.c
index d098355be6..feb9f0a6eb 100644
--- a/test/ecdsatest.c
+++ b/test/ecdsatest.c
@@ -545,7 +545,8 @@ int main(void)
ERR_remove_thread_state(NULL);
ERR_free_strings();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
- CRYPTO_mem_leaks(out);
+ if (CRYPTO_mem_leaks(out) <= 0)
+ ret = 1;
#endif
BIO_free(out);
return ret;