mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
This commit is contained in:
parent
e9b11c1cd8
commit
d10759f6ed
5 changed files with 5 additions and 12 deletions
|
@ -1723,7 +1723,6 @@ _PyUnicode_FromId(_Py_Identifier *id)
|
|||
id->next = static_strings;
|
||||
static_strings = id;
|
||||
}
|
||||
Py_INCREF(id->object);
|
||||
return id->object;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue