mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
This commit is contained in:
commit
bc53032408
2 changed files with 4 additions and 0 deletions
|
@ -390,6 +390,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #13458: Fix a memory leak in the ssl module when decoding a
|
||||
certificate with a subjectAltName. Patch by Robert Xiao.
|
||||
|
||||
- Issue #13415: os.unsetenv() doesn't ignore errors anymore.
|
||||
|
||||
- Issue #13245: sched.scheduler class constructor's timefunc and
|
||||
|
|
|
@ -707,6 +707,7 @@ _get_peer_alt_names (X509 *certificate) {
|
|||
}
|
||||
Py_DECREF(t);
|
||||
}
|
||||
sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free);
|
||||
}
|
||||
BIO_free(biobuf);
|
||||
if (peer_alt_names != Py_None) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue