]> granicus.if.org Git - python/commit
Fix resize_compact()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 27 Jan 2016 15:56:53 +0000 (16:56 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 27 Jan 2016 15:56:53 +0000 (16:56 +0100)
commit5bc03a6d4d5d08663056ad1e85b67ad53e74d795
tree1e07cdd7be1ba1978dacc5f7c55f3c5374d7f7bf
parent3743432302e9b31d4fe0db31485543a306057fc8
Fix resize_compact()

Issue #26217: resize_compact() must set wstr_length to 0 after freeing the wstr
string. Otherwise, an assertion fails in _PyUnicode_CheckConsistency().
Objects/unicodeobject.c