commit | 2caf86ff6d72d625f86db78c6e90fdaf09e8f703 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Sun Aug 26 13:13:47 2018 -0400 |
committer | GitHub <noreply@github.com> | Sun Aug 26 13:13:47 2018 -0400 |
tree | df6a4e687c17cb479619f8169401ff66940747e7 | |
parent | d6725fcdd54cb3c72201eaa8841dd72d84f5f71d [diff] [blame] |
bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934) (cherry picked from commit a2eefa67542c25617a58c03a27c17fd48e2a0856) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
diff --git a/Python/errors.c b/Python/errors.c index 15e6ba0..8c8ea1c 100644 --- a/Python/errors.c +++ b/Python/errors.c
@@ -110,6 +110,7 @@ fixed_value = _PyErr_CreateException(exception, value); Py_XDECREF(value); if (fixed_value == NULL) { + Py_DECREF(exc_value); return; }