From a4d96a2ac0bf14d31b2d531ceb57e567111247a4 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 22 Nov 2022 20:04:51 +0000 Subject: Plug leaks spotted by ASAN CI --- src/regress/lib/libcrypto/evp/evp_ecx_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/regress/lib/libcrypto/evp/evp_ecx_test.c') diff --git a/src/regress/lib/libcrypto/evp/evp_ecx_test.c b/src/regress/lib/libcrypto/evp/evp_ecx_test.c index a20902440c..c035f11b54 100644 --- a/src/regress/lib/libcrypto/evp/evp_ecx_test.c +++ b/src/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; -- cgit v1.2.3-55-g6feb