diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-01-14 23:00:03 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-05 17:02:21 +0100 |
commit | 541e9565bb5b860e9e0b5faeb5d474deeaef743b (patch) | |
tree | 5fa066496061cc850728f0e0790e48810f19c8ae /test/dsatest.c | |
parent | Restore -no_comp switch for backwards compatible behaviour (diff) | |
download | openssl-541e9565bb5b860e9e0b5faeb5d474deeaef743b.tar.xz openssl-541e9565bb5b860e9e0b5faeb5d474deeaef743b.zip |
If memory debugging enabled return error on leaks.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/dsatest.c')
-rw-r--r-- | test/dsatest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dsatest.c b/test/dsatest.c index 426e443bbc..f36b4494d0 100644 --- a/test/dsatest.c +++ b/test/dsatest.c @@ -215,7 +215,8 @@ int main(int argc, char **argv) ERR_remove_thread_state(NULL); ERR_free_strings(); #ifndef OPENSSL_NO_CRYPTO_MDEBUG - CRYPTO_mem_leaks(bio_err); + if (CRYPTO_mem_leaks(bio_err) <= 0) + ret = 0; #endif BIO_free(bio_err); bio_err = NULL; |