diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-03-18 23:17:39 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-06 06:17:21 -0400 |
commit | f0e1fe7cc30b22d9e24ac38f0d4631f9b8042e12 (patch) | |
tree | f5d6d12ca8afae7d8e537c97e7d459be5e599395 /test/dhtest.c | |
parent | 570c0716e30ca3490cc8f5d8d7cf25bcd99d6c7c (diff) |
Add missing mem leak test activation and checks
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/dhtest.c')
-rw-r--r-- | test/dhtest.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/dhtest.c b/test/dhtest.c index 5940aa78b2..8fad6da4fd 100644 --- a/test/dhtest.c +++ b/test/dhtest.c @@ -194,6 +194,7 @@ int main(int argc, char *argv[]) if (!run_rfc5114_tests()) ret = 1; err: + (void)BIO_flush(out); ERR_print_errors_fp(stderr); OPENSSL_free(abuf); @@ -202,6 +203,12 @@ int main(int argc, char *argv[]) DH_free(a); BN_GENCB_free(_cb); BIO_free(out); + +#ifndef OPENSSL_NO_CRYPTO_MDEBUG + if (CRYPTO_mem_leaks_fp(stderr) <= 0) + ret = 1; +#endif + EXIT(ret); } |