]> granicus.if.org Git - python/commit
[3.5] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1143)
authorMariatta <Mariatta@users.noreply.github.com>
Sat, 15 Apr 2017 01:36:11 +0000 (18:36 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2017 01:36:11 +0000 (18:36 -0700)
commitc40740cf06470a774e98f84537801cd8b7176938
tree98f6f1f40323105ec2dc173a866d2e5db7e9ddd4
parentd960d766cf69152c71aa0fc62fa31af1aa174e1e
[3.5] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1143)

* 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