projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5840ed0
)
Coverity 1414465: Resource leaks (RESOURCE_LEAK)
author
Pauli
<paul.dale@oracle.com>
Sun, 8 Sep 2019 08:25:34 +0000
(18:25 +1000)
committer
Pauli
<paul.dale@oracle.com>
Tue, 10 Sep 2019 22:27:26 +0000
(08:27 +1000)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9805)
test/evp_test.c
patch
|
blob
|
history
diff --git
a/test/evp_test.c
b/test/evp_test.c
index 2f7506e6e606baea57af1615cf5c8bc13fc0054c..1ff90c2283a056aea5d1485cbe548a4c9b42b57e 100644
(file)
--- a/
test/evp_test.c
+++ b/
test/evp_test.c
@@
-2008,8
+2008,10
@@
static int kdf_test_init(EVP_TEST *t, const char *name)
*kdata->p = OSSL_PARAM_construct_end();
kdf = EVP_KDF_fetch(NULL, name, NULL);
- if (kdf == NULL)
+ if (kdf == NULL) {
+ OPENSSL_free(kdata);
return 0;
+ }
kdata->ctx = EVP_KDF_CTX_new(kdf);
EVP_KDF_free(kdf);
if (kdata->ctx == NULL) {