]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #19437: Fix _PyUnicode_New() (constructor of legacy string), set all
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Oct 2013 18:31:43 +0000 (19:31 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 29 Oct 2013 18:31:43 +0000 (19:31 +0100)
commit68b674c9d403906e91bb5a294449d90f2d747b8c
tree4b9b5b498a92b84467dda7e684fc2a8d2933da04
parent0b0c86717807bf86ba5d1d7d332529ad08179934
Issue #19437: Fix _PyUnicode_New() (constructor of legacy string), set all
attributes before checking for error. The destructor expects all attributes to
be set. It is now safe to call Py_DECREF(unicode) in the constructor.
Objects/unicodeobject.c