Issue #15609: Fix refleak introduced by my last optimization
This commit is contained in:
parent
450dbcf421
commit
c89d28fdfc
|
@ -13449,8 +13449,11 @@ mainformatlong(_PyUnicodeWriter *writer, PyObject *v,
|
|||
break;
|
||||
}
|
||||
|
||||
if (_PyLong_FormatWriter(writer, v, base, alternate) == -1)
|
||||
if (_PyLong_FormatWriter(writer, v, base, alternate) == -1) {
|
||||
Py_DECREF(iobj);
|
||||
return -1;
|
||||
}
|
||||
Py_DECREF(iobj);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue