Skip to content

Commit 0ac5372

Browse files
authored
bpo-46323: Fix double-free issue for borrowed refs (GH-31272)
1 parent dd76b3f commit 0ac5372

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_ctypes/callbacks.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ static void _CallPythonObject(void *mem,
189189
CDataObject *obj = (CDataObject *)_PyObject_CallNoArgs(cnv);
190190
if (!obj) {
191191
PrintError("create argument %zd:\n", i);
192-
Py_DECREF(cnv);
193192
goto Done;
194193
}
195194
if (!CDataObject_Check(obj)) {

0 commit comments

Comments
 (0)