cpython: 58a75eeb5c8e (original) (raw)
Mercurial > cpython
changeset 72473:58a75eeb5c8e 3.2
Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype. Thanks to Suman Saha for finding the bug and providing a patch. [#13013]
Meador Inge meadori@gmail.com | |
---|---|
date | Tue, 27 Sep 2011 20:45:30 -0500 |
parents | 4951ffc178db |
children | 1726fa560112 160b52c9e8b3 |
files | Misc/ACKS Misc/NEWS Modules/_ctypes/_ctypes.c |
diffstat | 3 files changed, 5 insertions(+), 0 deletions(-)[+] [-] Misc/ACKS 1 Misc/NEWS 3 Modules/_ctypes/_ctypes.c 1 |
line wrap: on
line diff
--- a/Misc/ACKS +++ b/Misc/ACKS @@ -774,6 +774,7 @@ Sam Rushing Mark Russell Nick Russo Sébastien Sablé +Suman Saha Hajime Saitou George Sakkis Rich Salz
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -82,6 +82,9 @@ Tests Extension Modules ----------------- +- Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
- Issue #13022: Fix: _multiprocessing.recvfd() doesn't check that file descriptor was actually received.
--- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -4474,6 +4474,7 @@ PyCArrayType_from_ctype(PyObject *itemty if (!PyType_Check(itemtype)) { PyErr_SetString(PyExc_TypeError, "Expected a type object");