mirror of https://github.com/python/cpython
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 New Issue