mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
fix possible memory lea k in _get_aia_uri (closes #25578)
This commit is contained in:
parent
0d441119f5
commit
f0c9038a36
2 changed files with 6 additions and 1 deletions
|
|
@ -106,6 +106,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #25578: Fix (another) memory leak in SSLSocket.getpeercer().
|
||||||
|
|
||||||
- Issue #25590: In the Readline completer, only call getattr() once per
|
- Issue #25590: In the Readline completer, only call getattr() once per
|
||||||
attribute.
|
attribute.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -977,7 +977,10 @@ _get_aia_uri(X509 *certificate, int nid) {
|
||||||
AUTHORITY_INFO_ACCESS *info;
|
AUTHORITY_INFO_ACCESS *info;
|
||||||
|
|
||||||
info = X509_get_ext_d2i(certificate, NID_info_access, NULL, NULL);
|
info = X509_get_ext_d2i(certificate, NID_info_access, NULL, NULL);
|
||||||
if ((info == NULL) || (sk_ACCESS_DESCRIPTION_num(info) == 0)) {
|
if (info == NULL)
|
||||||
|
return Py_None;
|
||||||
|
if (sk_ACCESS_DESCRIPTION_num(info) == 0) {
|
||||||
|
AUTHORITY_INFO_ACCESS_free(info);
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue