25 Jul
2024
25 Jul
'24
9:11 a.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/time.c:
t = _localtime64( time ); strcpy( res, asctime( t ) ); + free(t);
Again, the implementation of `_ctime64_s` is broken (it shouldn't use non thread-safe `_localtime64` function) but there's no leak. Value returned by `_localtime64` should not be freed. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6152#note_77041