diff options
author | Alexey Izbyshev <izbyshev@ispras.ru> | 2018-08-26 16:31:25 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2018-08-26 16:31:25 (GMT) |
commit | a2eefa67542c25617a58c03a27c17fd48e2a0856 (patch) | |
tree | 04ec6df3111ad2c083627e23ddf489f4f9dd8349 /Python | |
parent | b57b4ac042b977e0b42a2f5ddb30ca7edffacfa9 (diff) | |
download | cpython-a2eefa67542c25617a58c03a27c17fd48e2a0856.zip cpython-a2eefa67542c25617a58c03a27c17fd48e2a0856.tar.gz cpython-a2eefa67542c25617a58c03a27c17fd48e2a0856.tar.bz2 |
bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/errors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c index 98910b4..2926ea1 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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; } |