[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Robert Xiao
New submission from Robert Xiao nneon...@gmail.com: _ssl.c has a memory leak in _get_peer_alt_names. The `names' object is initialized here: Modules/_ssl.c:601: if (method-it) names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL, p,

[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file23760/ssl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458

[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: Also applies to Python 2.7. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___

[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458 ___ ___ Python-bugs-list

[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 80d491aaeed2 by Antoine Pitrou in branch '3.2': Issue #13458: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. http://hg.python.org/cpython/rev/80d491aaeed2 New changeset

[issue13458] _ssl memory leak in _get_peer_alt_names

2011-11-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed, thank you. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13458