This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
RE: Memory leak with detached threads
- From: "Stephen Croall" <scroall at tibco dot com>
- To: "Giuliano Catrambone" <giuliano dot catrambone at catrasoftware dot it>
- Cc: <pthreads-win32 at sources dot redhat dot com>
- Date: Sun, 29 Oct 2006 11:02:42 -0800
- Subject: RE: Memory leak with detached threads
DOH!
Just realised that you are calling pthread_attr_setdetachstate(). You
could change to calling pthread_detach() to see if the memory leak still
happens. We use this call a lot in our code and have no problems with
leaks.
Steve.