diff options
Diffstat (limited to 'test/verify_extra_test.c')
-rw-r--r-- | test/verify_extra_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/verify_extra_test.c b/test/verify_extra_test.c index 7cc673929c..005fae63c0 100644 --- a/test/verify_extra_test.c +++ b/test/verify_extra_test.c @@ -187,8 +187,7 @@ static int test_alt_chains_cert_forgery(const char *roots_f, int main(int argc, char **argv) { - CRYPTO_malloc_debug_init(); - CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); + CRYPTO_set_mem_debug(1); CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); ERR_load_crypto_strings(); @@ -208,7 +207,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_fp(stderr); +#endif printf("PASS\n"); return 0; |