Skip to content

Commit fe914c0

Browse files
authored
Merge pull request #119 from aequitas/ocspmemoryleak
Fix memory leak in OCSP response basic_verify
2 parents b08d317 + ea59acf commit fe914c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nassl/_nassl/nassl_OCSP_RESPONSE.c

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ static PyObject* nassl_OCSP_RESPONSE_basic_verify(nassl_OCSP_RESPONSE_Object *se
139139

140140
verifyRes = OCSP_basic_verify(basicResp, NULL, trustedCAs, 0);
141141
OCSP_BASICRESP_free(basicResp);
142+
X509_STORE_free(trustedCAs);
142143
if (verifyRes <= 0)
143144
{
144145
return raise_OpenSSL_error();

0 commit comments

Comments
 (0)