소스 검색

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

git-svn-id: trunk@26220 -
marco 11 년 전
부모
커밋
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}