bpo-46323: Fix double-free issue for borrowed refs (GH-31272)

This commit is contained in:
Dong-hee Na 2022-02-11 17:48:47 +09:00 committed by GitHub
parent dd76b3f7d3
commit 0ac5372bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,6 @@ static void _CallPythonObject(void *mem,
CDataObject *obj = (CDataObject *)_PyObject_CallNoArgs(cnv);
if (!obj) {
PrintError("create argument %zd:\n", i);
Py_DECREF(cnv);
goto Done;
}
if (!CDataObject_Check(obj)) {