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
a96b0d119d
commit
fe15003680
|
@ -720,6 +720,7 @@ Sam Rushing
|
||||||
Mark Russell
|
Mark Russell
|
||||||
Nick Russo
|
Nick Russo
|
||||||
Sébastien Sablé
|
Sébastien Sablé
|
||||||
|
Suman Saha
|
||||||
Hajime Saitou
|
Hajime Saitou
|
||||||
George Sakkis
|
George Sakkis
|
||||||
Rich Salz
|
Rich Salz
|
||||||
|
|
|
@ -207,6 +207,9 @@ Library
|
||||||
Extension Modules
|
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
|
- Issue #13022: Fix: _multiprocessing.recvfd() doesn't check that
|
||||||
file descriptor was actually received.
|
file descriptor was actually received.
|
||||||
|
|
||||||
|
|
|
@ -4678,6 +4678,7 @@ PyCArrayType_from_ctype(PyObject *itemtype, Py_ssize_t length)
|
||||||
if (!PyType_Check(itemtype)) {
|
if (!PyType_Check(itemtype)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"Expected a type object");
|
"Expected a type object");
|
||||||
|
Py_DECREF(key);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef MS_WIN64
|
#ifdef MS_WIN64
|
||||||
|
|
Loading…
Reference in New Issue