Ver Fonte

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

git-svn-id: trunk@26220 -
marco há 11 anos atrás
pai
commit
996e802606
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      rtl/unix/cthreads.pp

+ 1 - 0
rtl/unix/cthreads.pp

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