Skip to content

Commit

Permalink
Fix a potential reference-counting bug in long_pow (GH-26690) (#26702)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5924243)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
  • Loading branch information
miss-islington and mdickinson committed Jun 13, 2021
1 parent a9e20cf commit 9ee8752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/longobject.c
Expand Up @@ -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:
Expand Down

0 comments on commit 9ee8752

Please sign in to comment.