Commit aa1c967f authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #13458: Fix a memory leak in the ssl module when decoding a certificate...

Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
parent 091b6ef7
......@@ -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
......
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment