diff --git a/tests/api.c b/tests/api.c index 651505243..62020f11d 100644 --- a/tests/api.c +++ b/tests/api.c @@ -32315,6 +32315,7 @@ static int test_wolfSSL_PEM_RSAPrivateKey(void) AssertNotNull((rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL))); AssertIntEQ(RSA_size(rsa), 256); RSA_free(rsa); + XFCLOSE(f); #ifdef HAVE_ECC AssertNotNull(bio = BIO_new_file(eccKeyFile, "rb"));