diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-01-14 22:00:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-05 16:02:21 +0000 |
commit | 541e9565bb5b860e9e0b5faeb5d474deeaef743b (patch) | |
tree | 5fa066496061cc850728f0e0790e48810f19c8ae /test/clienthellotest.c | |
parent | cc5a9ba485b988b036974cf682cda35180788446 (diff) |
If memory debugging enabled return error on leaks.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/clienthellotest.c')
-rw-r--r-- | test/clienthellotest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/clienthellotest.c b/test/clienthellotest.c index 66fc27f48b..d9ae758987 100644 --- a/test/clienthellotest.c +++ b/test/clienthellotest.c @@ -217,7 +217,8 @@ int main(int argc, char *argv[]) EVP_cleanup(); CRYPTO_cleanup_all_ex_data(); #ifndef OPENSSL_NO_CRYPTO_MDEBUG - CRYPTO_mem_leaks(err); + if (CRYPTO_mem_leaks(err) <= 0) + testresult = 0; #endif BIO_free(err); |