New valgrind results for Oct 22, 2009

Nikolay Sivov bunglehead at gmail.com
Fri Oct 23 12:01:55 CDT 2009


Dan Kegel wrote:
> On Fri, Oct 23, 2009 at 9:37 AM, Nikolay Sivov <bunglehead at gmail.com> wrote:
>   
>> Did I miss something?
>>     
>
> Sorry, I'm not fully awake (and I think the last time I was fully awake was
> some time before I had children :-).
>   
Same here I can tell you.
> MSDN says
> "When a DLL is unloaded from a process as a result of an unsuccessful
> load of the DLL, termination of the process, or a call to FreeLibrary,
> the system does not call the DLL's entry-point function with the
> DLL_THREAD_DETACH value for the individual threads of the process. The
> DLL is only sent a DLL_PROCESS_DETACH notification. DLLs can take this
> opportunity to clean up all resources for all threads known to the
> DLL."
>   
For process termination it's harmless, but for explicit unload it's a 
leak. Probably a similar thread data tracking
should be added here too.
> The DLL_PROCESS_DETACH handler might need to iterate
> over all things created by threads and free them.  I think
> I've seen this before... check out urlmon/urlmon_main.c.
>   
Thanks for info.



More information about the wine-devel mailing list