Skip to content

Commit

Permalink
bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934)
Browse files Browse the repository at this point in the history
(cherry picked from commit a2eefa6)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
  • Loading branch information
miss-islington and izbyshev committed Aug 26, 2018
1 parent d6725fc commit 2caf86f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/errors.c
Expand Up @@ -110,6 +110,7 @@ PyErr_SetObject(PyObject *exception, PyObject *value)
fixed_value = _PyErr_CreateException(exception, value);
Py_XDECREF(value);
if (fixed_value == NULL) {
Py_DECREF(exc_value);
return;
}

Expand Down

0 comments on commit 2caf86f

Please sign in to comment.