diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2021-06-13 07:19:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 07:19:29 (GMT) |
commit | 59242431991794064824cf2ab70886367613f29e (patch) | |
tree | 64cc54fe4124baaab24ac60c8be9f22c81ef0821 /Objects/longobject.c | |
parent | 17b16e13bb444001534ed6fccb459084596c8bcf (diff) | |
download | cpython-59242431991794064824cf2ab70886367613f29e.zip cpython-59242431991794064824cf2ab70886367613f29e.tar.gz cpython-59242431991794064824cf2ab70886367613f29e.tar.bz2 |
Fix a potential reference-counting bug in long_pow (GH-26690)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 5e29e9a..d9127b3 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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: |