From a1db19540bb0b11f304d500473fd51b6d11c5dc4 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 29 Feb 2024 20:04:43 +0000 Subject: [PATCH] CRYPTO_mem_leaks* will go away. Remove calls in legacy tests --- regress/lib/libcrypto/dsa/dsatest.c | 3 +-- regress/lib/libcrypto/ec/ectest.c | 3 +-- regress/lib/libcrypto/evp/evptest.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/regress/lib/libcrypto/dsa/dsatest.c b/regress/lib/libcrypto/dsa/dsatest.c index 10ebc3a9f83..3a761961f07 100644 --- a/regress/lib/libcrypto/dsa/dsatest.c +++ b/regress/lib/libcrypto/dsa/dsatest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsatest.c,v 1.10 2023/11/19 13:11:05 tb Exp $ */ +/* $OpenBSD: dsatest.c,v 1.11 2024/02/29 20:04:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -196,7 +196,6 @@ end: CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); ERR_free_strings(); - CRYPTO_mem_leaks(bio_err); BIO_free(bio_err); bio_err = NULL; diff --git a/regress/lib/libcrypto/ec/ectest.c b/regress/lib/libcrypto/ec/ectest.c index b32b007b304..e60fde60e6e 100644 --- a/regress/lib/libcrypto/ec/ectest.c +++ b/regress/lib/libcrypto/ec/ectest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ectest.c,v 1.22 2023/11/19 13:11:05 tb Exp $ */ +/* $OpenBSD: ectest.c,v 1.23 2024/02/29 20:04:43 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -769,7 +769,6 @@ main(int argc, char *argv[]) CRYPTO_cleanup_all_ex_data(); ERR_free_strings(); ERR_remove_thread_state(NULL); - CRYPTO_mem_leaks_fp(stderr); return 0; } diff --git a/regress/lib/libcrypto/evp/evptest.c b/regress/lib/libcrypto/evp/evptest.c index 0b9436a83f4..f652cf5a259 100644 --- a/regress/lib/libcrypto/evp/evptest.c +++ b/regress/lib/libcrypto/evp/evptest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evptest.c,v 1.13 2023/11/19 13:11:06 tb Exp $ */ +/* $OpenBSD: evptest.c,v 1.14 2024/02/29 20:04:43 tb Exp $ */ /* Written by Ben Laurie, 2001 */ /* * Copyright (c) 2001 The OpenSSL Project. All rights reserved. @@ -441,7 +441,6 @@ main(int argc, char **argv) CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); ERR_free_strings(); - CRYPTO_mem_leaks_fp(stderr); return 0; } -- 2.20.1