diff options
Diffstat (limited to 'test/dsatest.c')
-rw-r--r-- | test/dsatest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dsatest.c b/test/dsatest.c index 1f4b8379c4..81c36cb48a 100644 --- a/test/dsatest.c +++ b/test/dsatest.c @@ -138,8 +138,7 @@ int main(int argc, char **argv) if (bio_err == NULL) bio_err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT); - CRYPTO_malloc_debug_init(); - CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); + CRYPTO_set_mem_debug(1); CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); ERR_load_crypto_strings(); @@ -216,7 +215,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(bio_err); +#endif BIO_free(bio_err); bio_err = NULL; # ifdef OPENSSL_SYS_NETWARE |