diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-13 07:42:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 07:42:43 (GMT) |
commit | 9ee8752162d54c595b1ce4b1bebc4dff94b9c659 (patch) | |
tree | 890b2acf6cbf8eb9f91c1378436b797e289da81c /Objects | |
parent | a9e20cf7bbf3ba39260fca112938f95e4f317efc (diff) | |
download | cpython-9ee8752162d54c595b1ce4b1bebc4dff94b9c659.zip cpython-9ee8752162d54c595b1ce4b1bebc4dff94b9c659.tar.gz cpython-9ee8752162d54c595b1ce4b1bebc4dff94b9c659.tar.bz2 |
Fix a potential reference-counting bug in long_pow (GH-26690) (#26702)
(cherry picked from commit 59242431991794064824cf2ab70886367613f29e)
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Diffstat (limited to 'Objects')
-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 0ff0e80..cf13b2c 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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: |