summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-23 00:39:19 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-23 00:39:19 (GMT)
commit116d6b98bf9c09760269db093f3251a16b6c1e81 (patch)
tree28fb328eec93e09cc08517163aa13e6bf0956637 /Modules
parentb3f82680313389bf41fd8c70620b1c336fc36ed8 (diff)
downloadcpython-116d6b98bf9c09760269db093f3251a16b6c1e81.zip
cpython-116d6b98bf9c09760269db093f3251a16b6c1e81.tar.gz
cpython-116d6b98bf9c09760269db093f3251a16b6c1e81.tar.bz2
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 84ec477..5419059 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -679,6 +679,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) {