From ac3cdb42b73777c2ac0af8f4464bb3f4fc107805 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 1 Jun 2022 13:18:36 -0700 Subject: [PATCH] free structure in test case and return 0 from ocsp renew script --- certs/ocsp/renewcerts.sh | 1 + tests/api.c | 1 + 2 files changed, 2 insertions(+) diff --git a/certs/ocsp/renewcerts.sh b/certs/ocsp/renewcerts.sh index 96744b6fd..955fd73ae 100755 --- a/certs/ocsp/renewcerts.sh +++ b/certs/ocsp/renewcerts.sh @@ -90,3 +90,4 @@ openssl ocsp -issuer ./root-ca-cert.pem -cert ./intermediate1-ca-cert.pem -url h kill $PID wait $PID +exit 0 diff --git a/tests/api.c b/tests/api.c index 7cab7504b..6c42d871a 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1437,6 +1437,7 @@ static void test_wolfSSL_CheckOCSPResponse(void) bs = wolfSSL_OCSP_response_get1_basic(res); AssertNotNull(bs); AssertIntEQ(wolfSSL_OCSP_basic_verify(bs, NULL, st, 0), WOLFSSL_SUCCESS); + wolfSSL_OCSP_BASICRESP_free(bs); wolfSSL_OCSP_RESPONSE_free(res); wolfSSL_X509_STORE_free(st); wolfSSL_X509_free(issuer);