mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix a potential reference-counting bug in long_pow (GH-26690) (#26702)
(cherry picked from commit 5924243199)
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
This commit is contained in:
parent
a9e20cf7bb
commit
9ee8752162
1 changed files with 1 additions and 0 deletions
|
|
@ -4312,6 +4312,7 @@ long_pow(PyObject *v, PyObject *w, PyObject *x)
|
|||
goto Error;
|
||||
Py_DECREF(a);
|
||||
a = temp;
|
||||
temp = NULL;
|
||||
}
|
||||
|
||||
/* Reduce base by modulus in some cases:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue