Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76aa1fb

Browse files
committed
merge 3.4 (#27774)
2 parents 81b9ecd + 10bc0f6 commit 76aa1fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Library
4242
- In the curses module, raise an error if window.getstr() or window.instr() is
4343
passed a negative value.
4444

45+
- Issue #27774: Fix possible Py_DECREF on unowned object in _sre.
46+
4547
- Issue #27760: Fix possible integer overflow in binascii.b2a_qp.
4648

4749
- Issue #27758: Fix possible integer overflow in the _csv module for large record

Modules/_sre.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,10 +2196,8 @@ _sre_SRE_Match_groupdict_impl(MatchObject *self, PyObject *default_value)
21962196
if (!key)
21972197
goto failed;
21982198
value = match_getslice(self, key, default_value);
2199-
if (!value) {
2200-
Py_DECREF(key);
2199+
if (!value)
22012200
goto failed;
2202-
}
22032201
status = PyDict_SetItem(result, key, value);
22042202
Py_DECREF(value);
22052203
if (status < 0)

0 commit comments

Comments
 (0)