[issue35322] test_datetime leaks memory on Windows

Alexey Izbyshev report at bugs.python.org
Tue Nov 27 11:15:29 EST 2018


Alexey Izbyshev <izbyshev at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35322>
_______________________________________


More information about the Python-bugs-list mailing list