mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-46407: Fix long_mod refleak (GH-31025)
This commit is contained in:
parent
8fb3649450
commit
768569325a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue