http://bugs.winehq.org/show_bug.cgi?id=20861
Summary: CoTaskMemAlloc()/SysFreeString() mismatch in DocHost_Release(), caught by valgrind in shdocvw/tests/webbrowser.c Product: Wine Version: 1.1.33 Platform: PC OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: urlmon AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
http://kegel.com/wine/valgrind/logs/2009-11-27-12.53/vg-shdocvw_webbrowser.t... says Invalid free() / delete / delete[] at notify_free (heap.c:255) by RtlFreeHeap (heap.c:1748) by SysFreeString (oleaut.c:194) by DocHost_Release (dochost.c:756) by WebBrowser_Release (webbrowser.c:159) by test_WebBrowser (webbrowser.c:2367) Address 0x7f0ae944 is 4 bytes before a block of size 24 alloc'd at notify_alloc (heap.c:247) by RtlAllocateHeap (heap.c:1697) by IMalloc_fnAlloc (ifs.c:186) by CoTaskMemAlloc (ifs.c:562) by URLMoniker_GetDisplayName (umon.c:383)
And sure enough, it looks like a mismatch between CoTaskMemAlloc() and SysFreeString(), which sounds bad.