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:
Antoine Pitrou 2011-11-23 01:39:19 +01:00
parent 091b6ef793
commit aa1c967f93
2 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,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 #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is

View File

@ -798,6 +798,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) {