Skip to content

Commit

Permalink
Merge pull request #119 from aequitas/ocspmemoryleak
Browse files Browse the repository at this point in the history
Fix memory leak in OCSP response basic_verify
  • Loading branch information
nabla-c0d3 authored Jun 22, 2024
2 parents b08d317 + ea59acf commit fe914c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nassl/_nassl/nassl_OCSP_RESPONSE.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static PyObject* nassl_OCSP_RESPONSE_basic_verify(nassl_OCSP_RESPONSE_Object *se

verifyRes = OCSP_basic_verify(basicResp, NULL, trustedCAs, 0);
OCSP_BASICRESP_free(basicResp);
X509_STORE_free(trustedCAs);
if (verifyRes <= 0)
{
return raise_OpenSSL_error();
Expand Down

0 comments on commit fe914c0

Please sign in to comment.