2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@26220 -
marco 11 жил өмнө
parent
commit
996e802606
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      rtl/unix/cthreads.pp

+ 1 - 0
rtl/unix/cthreads.pp

@@ -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}