Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-29870: Free CRL DP with CRL_DIST_POINTS_free()
CRL_DIST_POINTS_free() compiles and tests with OpenSSL and libressl
versions

<BuildOpenSSL for 0.9.8zc>
<BuildOpenSSL for 0.9.8zh>
<BuildOpenSSL for 1.0.1u>
<BuildOpenSSL for 1.0.2>
<BuildOpenSSL for 1.0.2k>
<BuildOpenSSL for 1.1.0e>
<BuildLibreSSL for 2.3.10>
<BuildLibreSSL for 2.4.5>
<BuildLibreSSL for 2.5.3>

I have verified that it does no longer leak on OpenSSL 1.0.2k.
  • Loading branch information
tiran committed Apr 11, 2017
commit 7d382b87de8b6f4ba6a3a07f67f45f641b7a4ad9
4 changes: 1 addition & 3 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,9 +1257,7 @@ _get_crl_dp(X509 *certificate) {

done:
Py_XDECREF(lst);
#if OPENSSL_VERSION_NUMBER < 0x10001000L
sk_DIST_POINT_free(dps);
#endif
CRL_DIST_POINTS_free(dps);
return res;
}

Expand Down