diff options
| author | tb <> | 2022-11-22 20:04:51 +0000 | 
|---|---|---|
| committer | tb <> | 2022-11-22 20:04:51 +0000 | 
| commit | 04e82e7fa8afdcbb3b4e2e44924e91b9c992456b (patch) | |
| tree | 9302bffa3a5b65af165041aa2203f340a300f54c | |
| parent | 894280fa5b591d3caca7a19d7f13d843ce655e66 (diff) | |
| download | openbsd-04e82e7fa8afdcbb3b4e2e44924e91b9c992456b.tar.gz openbsd-04e82e7fa8afdcbb3b4e2e44924e91b9c992456b.tar.bz2 openbsd-04e82e7fa8afdcbb3b4e2e44924e91b9c992456b.zip | |
Plug leaks spotted by ASAN CI
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/evp/evp_ecx_test.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| 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 @@ | |||
| 1 | /* $OpenBSD: evp_ecx_test.c,v 1.1 2022/11/10 16:38:57 jsing Exp $ */ | 1 | /* $OpenBSD: evp_ecx_test.c,v 1.2 2022/11/22 20:04:51 tb Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 
| 4 | * | 4 | * | 
| @@ -440,6 +440,7 @@ ecx_ed25519_sign_test(void) | |||
| 440 | 440 | ||
| 441 | failure: | 441 | failure: | 
| 442 | BIO_free(bio); | 442 | BIO_free(bio); | 
| 443 | EVP_MD_CTX_free(md_ctx); | ||
| 443 | EVP_PKEY_free(pkey); | 444 | EVP_PKEY_free(pkey); | 
| 444 | free(signature); | 445 | free(signature); | 
| 445 | 446 | ||
| @@ -480,6 +481,7 @@ ecx_ed25519_verify_test(void) | |||
| 480 | 481 | ||
| 481 | failure: | 482 | failure: | 
| 482 | BIO_free(bio); | 483 | BIO_free(bio); | 
| 484 | EVP_MD_CTX_free(md_ctx); | ||
| 483 | EVP_PKEY_free(pkey); | 485 | EVP_PKEY_free(pkey); | 
| 484 | 486 | ||
| 485 | return failed; | 487 | return failed; | 
