]> granicus.if.org Git - python/commit
[2.7] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1144)
authorMariatta <Mariatta@users.noreply.github.com>
Sat, 15 Apr 2017 01:24:22 +0000 (18:24 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2017 01:24:22 +0000 (18:24 -0700)
commitb2b00e039ce71e69148e5f479e2154c1c7b712ca
tree76193dc3147a04062de961a8818ec7db7ef70937
parent53ad68434ce914defcc1b734cce4b9b4d79ca3fc
[2.7] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1144)

* Remove conditional on free of `dps`, since `dps` is now allocated for
all versions of OpenSSL
* Remove call to `x509_check_ca` since it was only used to cache
the `crldp` field of the certificate
CRL_DIST_POINTS_free is available in all supported versions of OpenSSL
(recent 0.9.8+) and LibreSSL.
(cherry picked from commit 2849cc34a8db93d448a62d69c462402347b50dcb)
Modules/_ssl.c