bpo-38532: Add missing decrefs in PyCFuncPtr_FromDll() (GH-16857)
This commit is contained in:
parent
b789202cbe
commit
e02ab59fdf
|
@ -3554,10 +3554,12 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
if (PySys_Audit("ctypes.dlsym",
|
||||
((uintptr_t)name & ~0xFFFF) ? "Os" : "On",
|
||||
dll, name) < 0) {
|
||||
Py_DECREF(ftuple);
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
if (PySys_Audit("ctypes.dlsym", "Os", dll, name) < 0) {
|
||||
Py_DECREF(ftuple);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue