mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix refleak
This commit is contained in:
parent
98c70acf47
commit
7b932da443
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ set_key_error(PyObject *arg)
|
||||||
if (!tup)
|
if (!tup)
|
||||||
return; /* caller will expect error to be set anyway */
|
return; /* caller will expect error to be set anyway */
|
||||||
PyErr_SetObject(PyExc_KeyError, tup);
|
PyErr_SetObject(PyExc_KeyError, tup);
|
||||||
|
Py_DECREF(tup);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define this out if you don't want conversion statistics on exit. */
|
/* Define this out if you don't want conversion statistics on exit. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue