http://bugs.winehq.org/show_bug.cgi?id=20548
--- Comment #1 from Dan Kegel dank@kegel.com 2009-11-01 15:38:13 --- Here's a similar example, this time in ws2:
52 bytes in 1 blocks are definitely lost in loss record 431 of 983 by RtlAllocateHeap (heap.c:1421) by WS2_register_async_shutdown (socket.c:1526) by WS_shutdown (socket.c:3468) by net::TCPClientSocketWin::Disconnect (tcp_client_socket_win.cc:345) by net::`anonymous namespace'::TCPClientSocketTest_Connect_Test::TestBody (tcp_client_socket_unittest.cc:110)
Again, if the status is STATUS_PENDING, who's supposed to free that memory?
To reproduce the second example: 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=TCPClientSocketTest.Connect