Alexey Izbyshev <izbys...@ispras.ru> added the comment:

This is because of a leak of 'wstr' at 
https://github.com/python/cpython/blob/1005c84535191a72ebb7587d8c5636a065b7ed79/Objects/unicodeobject.c#L3476
 .

There is another leak and usage of uninitialized 'str' because the following 
"else if" clause doesn't have a 'return' (probably due to copy-paste from 
unicode_decode_locale() in 3d4226a832cabc630402589cc671cc4035d504e5).

----------
nosy: +izbyshev

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to