diff options
author | tb <> | 2022-11-22 20:04:51 +0000 |
---|---|---|
committer | tb <> | 2022-11-22 20:04:51 +0000 |
commit | a4d96a2ac0bf14d31b2d531ceb57e567111247a4 (patch) | |
tree | 9302bffa3a5b65af165041aa2203f340a300f54c /src/regress/lib | |
parent | 9f245f7b9abbb01c441bdde1365f56140c5cf559 (diff) | |
download | openbsd-a4d96a2ac0bf14d31b2d531ceb57e567111247a4.tar.gz openbsd-a4d96a2ac0bf14d31b2d531ceb57e567111247a4.tar.bz2 openbsd-a4d96a2ac0bf14d31b2d531ceb57e567111247a4.zip |
Plug leaks spotted by ASAN CI
Diffstat (limited to 'src/regress/lib')
-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; |