Skip to content

Commit

Permalink
Fix memory leak in OCSP response basic_verify
Browse files Browse the repository at this point in the history
  • Loading branch information
aequitas committed Jun 21, 2024
1 parent b08d317 commit ea59acf
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 ea59acf

Please sign in to comment.