This is the mail archive of the
mailing list for the pthreas-win32 project.
leak from main thread
I know that this is not the intended usage of the pthread library (as it
uses pthread for the main thread),
but the following program leaks two blocks of memory (with
// turn on leak detection
int dbgFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
dbgFlag |= _CRTDBG_LEAK_CHECK_DF;
Supposedly, the setcancelstate creates a mutex that is never freed (the
equivalent mutex is freed though
when a posix thread exits).