[compiler-rt] r185536 - [sanitizer] Fix memory leak in sanitizer_common discovered by LeakSanitizer.
Sergey Matveev
earthdok at google.com
Wed Jul 3 06:45:14 PDT 2013
Author: smatveev
Date: Wed Jul 3 08:45:13 2013
New Revision: 185536
URL: http://llvm.org/viewvc/llvm-project?rev=185536&view=rev
Log:
[sanitizer] Fix memory leak in sanitizer_common discovered by LeakSanitizer.
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=185536&r1=185535&r2=185536&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Wed Jul 3 08:45:13 2013
@@ -63,6 +63,7 @@ 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