* fix memleak pthread_attr, Mantis #25416 by Henry Vermaak.

git-svn-id: trunk@26220 -
This commit is contained in:
marco 2013-12-11 21:47:02 +00:00
parent 7fc33865be
commit 996e802606

View File

@ -357,6 +357,7 @@ Type PINTRTLEvent = ^TINTRTLEvent;
threadid := TThreadID(0);
end;
CBeginThread:=threadid;
pthread_attr_destroy(@thread_attr);
{$ifdef DEBUG_MT}
writeln('BeginThread returning ',ptrint(CBeginThread));
{$endif DEBUG_MT}