projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add OSSL_STACK_OF_X509_free() for commonly used pattern
[openssl.git]
/
test
/
testutil
/
load.c
diff --git
a/test/testutil/load.c
b/test/testutil/load.c
index d776a7f167cfd5dbe3c41dd5caf8d4fbfc62a34b..982e0a39a9b22fbcbcef7d772de4b8f1e44cb88b 100644
(file)
--- a/
test/testutil/load.c
+++ b/
test/testutil/load.c
@@
-49,7
+49,7
@@
STACK_OF(X509) *load_certs_pem(const char *file)
do {
x = PEM_read_bio_X509(bio, NULL, 0, NULL);
if (x != NULL && !sk_X509_push(certs, x)) {
-
sk_X509_pop_free(certs, X509_free
);
+
OSSL_STACK_OF_X509_free(certs
);
BIO_free(bio);
return NULL;
} else if (x == NULL) {