Issue 13014: _ssl.c: refleak - Python tracker (original) (raw)
Issue13014
Created on 2011-09-20 14:51 by Suman.Saha, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
python_patch2 | Suman.Saha,2011-09-20 14:51 | Patch | review |
Messages (4) | ||
---|---|---|
msg144331 - (view) | Author: Suman Saha (Suman.Saha) | Date: 2011-09-20 14:51 |
Something that is allocated using PyList_New is not freed on one error path. | ||
msg144370 - (view) | Author: Stefan Krah (skrah) * ![]() |
Date: 2011-09-21 07:31 |
This doesn't look right to me: If (rdn != NULL) && (PyList_Size(rdn) > 0), rdn is already decremented. There is a leak though if (rdn != NULL) && (PyList_Size(rdn) == 0). | ||
msg153438 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2012-02-15 21:34 |
New changeset f3a4c2b34973 by Antoine Pitrou in branch '3.2': Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert(). http://hg.python.org/cpython/rev/f3a4c2b34973 New changeset 9ab501b3e22d by Antoine Pitrou in branch 'default': Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert(). http://hg.python.org/cpython/rev/9ab501b3e22d New changeset 111dcae41ff7 by Antoine Pitrou in branch '2.7': Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert(). http://hg.python.org/cpython/rev/111dcae41ff7 | ||
msg153439 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2012-02-15 21:35 |
I've fixed the actual leak. Thanks! |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:21 | admin | set | github: 57223 |
2012-02-15 21:35:18 | pitrou | set | status: open -> closedversions: + Python 2.7, Python 3.2nosy: + pitroumessages: + resolution: fixedstage: resolved |
2012-02-15 21:34:40 | python-dev | set | nosy: + python-devmessages: + |
2011-09-21 19:30:03 | skrah | set | title: _ssl.c: resource is not released before returning from the function -> _ssl.c: refleakcomponents: + Extension Modulesversions: + Python 3.3 |
2011-09-21 08:06:22 | skrah | set | title: Resource is not released before returning from the functiion -> _ssl.c: resource is not released before returning from the function |
2011-09-21 07:31:23 | skrah | set | nosy: + skrahmessages: + |
2011-09-20 14:51:15 | Suman.Saha | create |