21 Jan
2007
21 Jan
'07
9:30 p.m.
Sohail Somani wrote:
I ran the OPs tests and I agree with your statement, except that it *does* depend on the number of threads. If I created two threads -> I got two leaks.
Try joining the first thread before creating a second one; it's likely that the block will be reused by libpthread (something that can't happen with a leak).