mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
bpo-46323: Fix double-free issue for borrowed refs (GH-31272)
This commit is contained in:
parent
dd76b3f7d3
commit
0ac5372bf6
1 changed files with 0 additions and 1 deletions
|
@ -189,7 +189,6 @@ static void _CallPythonObject(void *mem,
|
||||||
CDataObject *obj = (CDataObject *)_PyObject_CallNoArgs(cnv);
|
CDataObject *obj = (CDataObject *)_PyObject_CallNoArgs(cnv);
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
PrintError("create argument %zd:\n", i);
|
PrintError("create argument %zd:\n", i);
|
||||||
Py_DECREF(cnv);
|
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
if (!CDataObject_Check(obj)) {
|
if (!CDataObject_Check(obj)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue