]> granicus.if.org Git - python/commit
[3.6] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1142)
authorMariatta <Mariatta@users.noreply.github.com>
Sat, 15 Apr 2017 01:34:11 +0000 (18:34 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2017 01:34:11 +0000 (18:34 -0700)
commit8e7201342dc6eef201bfa4f533ad89a8144fd693
treed798c777d8ba19c1e87048f91aa1a61d1a853d8b
parent2e30eb6a98fb9b47e840528b41f1fc4446c69f36
[3.6] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1142)

* 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