summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-09-28 14:54:39 +0000
committertb <>2023-09-28 14:54:39 +0000
commitd0c3a66c98106b4c781a8120ee9b836007bd10fd (patch)
tree5f0b3aee9f438993d24f1de032a03c751c73488b /src
parent360f94a206460065dc45d44d17c460390328cb15 (diff)
downloadopenbsd-d0c3a66c98106b4c781a8120ee9b836007bd10fd.tar.gz
openbsd-d0c3a66c98106b4c781a8120ee9b836007bd10fd.tar.bz2
openbsd-d0c3a66c98106b4c781a8120ee9b836007bd10fd.zip
Don't leak ctx on failure
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/evp/evp_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/evp/evp_test.c b/src/regress/lib/libcrypto/evp/evp_test.c
index e00ed01759..0b1f54f6af 100644
--- a/src/regress/lib/libcrypto/evp/evp_test.c
+++ b/src/regress/lib/libcrypto/evp/evp_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_test.c,v 1.5 2023/09/28 11:39:35 tb Exp $ */ 1/* $OpenBSD: evp_test.c,v 1.6 2023/09/28 14:54:39 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -382,11 +382,10 @@ evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test)
382 } 382 }
383 383
384 done: 384 done:
385 EVP_CIPHER_CTX_free(ctx);
386
387 failure = 0; 385 failure = 0;
388 386
389 failure: 387 failure:
388 EVP_CIPHER_CTX_free(ctx);
390 389
391 return failure; 390 return failure;
392} 391}