artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7bb30c
)
Don't leak ctx on failure
author
tb
<tb@openbsd.org>
Thu, 28 Sep 2023 14:54:39 +0000
(14:54 +0000)
committer
tb
<tb@openbsd.org>
Thu, 28 Sep 2023 14:54:39 +0000
(14:54 +0000)
regress/lib/libcrypto/evp/evp_test.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/evp/evp_test.c
b/regress/lib/libcrypto/evp/evp_test.c
index
e00ed01
..
0b1f54f
100644
(file)
--- a/
regress/lib/libcrypto/evp/evp_test.c
+++ b/
regress/lib/libcrypto/evp/evp_test.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: evp_test.c,v 1.
5 2023/09/28 11:39:35
tb Exp $ */
+/* $OpenBSD: evp_test.c,v 1.
6 2023/09/28 14:54:39
tb Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
*
@@
-382,11
+382,10
@@
evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test)
}
done:
- EVP_CIPHER_CTX_free(ctx);
-
failure = 0;
failure:
+ EVP_CIPHER_CTX_free(ctx);
return failure;
}