mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix refleaks in test_unicode and test_string related to the new format code.
Stop polluting namespace.
This commit is contained in:
parent
2bad970293
commit
8a4eb298e2
4 changed files with 27 additions and 38 deletions
|
@ -416,6 +416,7 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs)
|
|||
Py_DECREF(key);
|
||||
goto error;
|
||||
}
|
||||
Py_DECREF(key);
|
||||
Py_INCREF(obj);
|
||||
} else {
|
||||
/* look up in args */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue