commit | 68b674c9d403906e91bb5a294449d90f2d747b8c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 29 19:31:43 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 29 19:31:43 2013 +0100 |
tree | 4b9b5b498a92b84467dda7e684fc2a8d2933da04 | |
parent | 0b0c86717807bf86ba5d1d7d332529ad08179934 [diff] |
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.