mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
Fix a potential reference-counting bug in long_pow (GH-26690)
This commit is contained in:
parent
17b16e13bb
commit
5924243199
|
@ -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…
Reference in a new issue