http://bugs.winehq.org/show_bug.cgi?id=20552
Summary: Memory leak in alloc_thread_tls? Product: Wine Version: 1.1.32 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Valgrinding the chromium tests shows the leak 514 bytes in 2 blocks are definitely lost in loss record 796 of 971 by RtlAllocateHeap (heap.c:1421) by alloc_thread_tls (loader.c:889) by MODULE_DllThreadAttach (loader.c:1184) by start_thread (thread.c:464) on e.g. the following tests:
ipc_tests: IPCChannelTest media_unittests: PipelineImplTest VideoRendererBaseTest WinAudioTest net_unittests: DirectoryListerTest ListenSocketTest ProxyScriptFetcherTest SingleThreadedProxyResolverTest TCPPingerTest TelnetServerTest URLRequestTestFTP URLRequestTestHTTP URLRequestTest
To reproduce:
mkdir demo cd demo wget -c http://kegel.com/wine/chromium/chromium-tests.tar.bz2 tar -xjvf chromium-tests.tar.bz2 valgrind --trace-children=yes --leak-check=full wine src/chrome/Debug/net_unittests.exe --gtest_filter=TCPPingerTest.Ping