aboutsummaryrefslogtreecommitdiff
path: root/test/x509_req_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/x509_req_test.c')
-rw-r--r--test/x509_req_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/x509_req_test.c b/test/x509_req_test.c
index 742b628..b37fd05 100644
--- a/test/x509_req_test.c
+++ b/test/x509_req_test.c
@@ -13,7 +13,6 @@
#include "testutil.h"
static char *certsDir = NULL;
-static char *certFilePath = NULL;
/*
* Test for the missing X509 version check discussed in issue #5738 and
@@ -24,6 +23,7 @@ static char *certFilePath = NULL;
*/
static int test_x509_req_detect_invalid_version(void)
{
+ char *certFilePath;
BIO *bio = NULL;
EVP_PKEY *pkey = NULL;
X509_REQ *req = NULL;
@@ -49,6 +49,7 @@ err:
EVP_PKEY_free(pkey);
X509_REQ_free(req);
BIO_free(bio);
+ OPENSSL_free(certFilePath);
return ret;
}