mirror of https://github.com/python/cpython
bpo-46407: Fix long_mod refleak (GH-31025)
This commit is contained in:
parent
8fb3649450
commit
768569325a
|
@ -2744,7 +2744,7 @@ long_rem(PyLongObject *a, PyLongObject *b, PyLongObject **prem)
|
|||
}
|
||||
else {
|
||||
/* Slow path using divrem. */
|
||||
x_divrem(a, b, prem);
|
||||
Py_XDECREF(x_divrem(a, b, prem));
|
||||
if (*prem == NULL)
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue