commit | aa1c967f93e7cbc28c964369af13c3e444407a22 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed Nov 23 01:39:19 2011 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed Nov 23 01:39:19 2011 +0100 |
tree | 93c0a4531a52d8607e918e1409cc81cf3b16ea0f | |
parent | 091b6ef79340a69f63de745b9a70b65ec9a21cdd [diff] |
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. Patch by Robert Xiao.
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index dd61660..becf6a5 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -798,6 +798,7 @@ } Py_DECREF(t); } + sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free); } BIO_free(biobuf); if (peer_alt_names != Py_None) {