summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-23 00:42:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-23 00:42:52 (GMT)
commitbc530324086fceab771e9ec5596d572fe452215e (patch)
tree1574f01f42c69a9b3efa6bbbf36891970618477d /Modules/_ssl.c
parentc8cf4dfa2f2957c7bb7396f287fa3bcf8c9ddd24 (diff)
parent116d6b98bf9c09760269db093f3251a16b6c1e81 (diff)
downloadcpython-bc530324086fceab771e9ec5596d572fe452215e.zip
cpython-bc530324086fceab771e9ec5596d572fe452215e.tar.gz
cpython-bc530324086fceab771e9ec5596d572fe452215e.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/_ssl.c')
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index dcde4ff..5772d90 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -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) {