From 3409f3adb7c12fba94fd62a55d2a8cd57856cb00 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 22 Nov 2022 20:04:51 +0000 Subject: [PATCH] Plug leaks spotted by ASAN CI --- regress/lib/libcrypto/evp/evp_ecx_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regress/lib/libcrypto/evp/evp_ecx_test.c b/regress/lib/libcrypto/evp/evp_ecx_test.c index a20902440ca..c035f11b546 100644 --- a/regress/lib/libcrypto/evp/evp_ecx_test.c +++ b/regress/lib/libcrypto/evp/evp_ecx_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_ecx_test.c,v 1.1 2022/11/10 16:38:57 jsing Exp $ */ +/* $OpenBSD: evp_ecx_test.c,v 1.2 2022/11/22 20:04:51 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -440,6 +440,7 @@ ecx_ed25519_sign_test(void) failure: BIO_free(bio); + EVP_MD_CTX_free(md_ctx); EVP_PKEY_free(pkey); free(signature); @@ -480,6 +481,7 @@ ecx_ed25519_verify_test(void) failure: BIO_free(bio); + EVP_MD_CTX_free(md_ctx); EVP_PKEY_free(pkey); return failed; -- 2.20.1