[compiler-rt] r189810 - Revert r185536 as it neither fixes any memory leaks, nor is it necessary (see the example from "man pthread_getattr_np")

Timur Iskhodzhanov timurrrr at google.com
Tue Sep 3 07:21:21 PDT 2013


Author: timurrrr
Date: Tue Sep  3 09:21:21 2013
New Revision: 189810

URL: http://llvm.org/viewvc/llvm-project?rev=189810&view=rev
Log:
Revert r185536 as it neither fixes any memory leaks, nor is it necessary (see the example from "man pthread_getattr_np")

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=189810&r1=189809&r2=189810&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Tue Sep  3 09:21:21 2013
@@ -63,7 +63,6 @@ void GetThreadStackTopAndBottom(bool at_
     return;
   }
   pthread_attr_t attr;
-  pthread_attr_init(&attr);
   CHECK_EQ(pthread_getattr_np(pthread_self(), &attr), 0);
   uptr stacksize = 0;
   void *stackaddr = 0;





More information about the llvm-commits mailing list