mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix a potential reference-counting bug in long_pow (GH-26690)
This commit is contained in:
parent
17b16e13bb
commit
5924243199
1 changed files with 1 additions and 0 deletions
|
@ -4185,6 +4185,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