mirror of https://github.com/python/cpython
Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
Thanks to Suman Saha for finding the bug and providing a patch.
This commit is contained in:
parent
6fb44728bb
commit
b86ecf4bd1
|
@ -774,6 +774,7 @@ Sam Rushing
|
|||
Mark Russell
|
||||
Nick Russo
|
||||
Sébastien Sablé
|
||||
Suman Saha
|
||||
Hajime Saitou
|
||||
George Sakkis
|
||||
Rich Salz
|
||||
|
|
|
@ -82,6 +82,9 @@ Tests
|
|||
Extension Modules
|
||||
-----------------
|
||||
|
||||
- Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
|
||||
Thanks to Suman Saha for finding the bug and providing a patch.
|
||||
|
||||
- Issue #13022: Fix: _multiprocessing.recvfd() doesn't check that
|
||||
file descriptor was actually received.
|
||||
|
||||
|
|
|
@ -4474,6 +4474,7 @@ PyCArrayType_from_ctype(PyObject *itemtype, Py_ssize_t length)
|
|||
if (!PyType_Check(itemtype)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"Expected a type object");
|
||||
Py_DECREF(key);
|
||||
return NULL;
|
||||
}
|
||||
#ifdef MS_WIN64
|
||||
|
|
Loading…
Reference in New Issue