mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
do not decref value borrowed from list (closes #27774)
This commit is contained in:
parent
4f976513ef
commit
3a27b0857e
2 changed files with 3 additions and 3 deletions
|
|
@ -29,6 +29,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #27774: Fix possible Py_DECREF on unowned object in _sre.
|
||||
|
||||
- Issue #27760: Fix possible integer overflow in binascii.b2a_qp.
|
||||
|
||||
- Issue #27758: Fix possible integer overflow in the _csv module for large record
|
||||
|
|
|
|||
|
|
@ -3401,10 +3401,8 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
|
|||
if (!key)
|
||||
goto failed;
|
||||
value = match_getslice(self, key, def);
|
||||
if (!value) {
|
||||
Py_DECREF(key);
|
||||
if (!value)
|
||||
goto failed;
|
||||
}
|
||||
status = PyDict_SetItem(result, key, value);
|
||||
Py_DECREF(value);
|
||||
if (status < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue