commit | 1adf52b7a65a9556fdf649869a63ad4379a91fa7 | [log] [tgz] |
---|---|---|
author | Sergey Matveev <earthdok@google.com> | Wed Jul 03 13:45:13 2013 +0000 |
committer | Sergey Matveev <earthdok@google.com> | Wed Jul 03 13:45:13 2013 +0000 |
tree | 4367e8657b98909bd20b7f78425db2639ee10291 | |
parent | 1cdae25bd9628901627faafd1c14742eedf5028c [diff] |
[sanitizer] Fix memory leak in sanitizer_common discovered by LeakSanitizer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185536 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_linux_libcdep.cc index 239df35..a00a8e2 100644 --- a/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_linux_libcdep.cc
@@ -63,6 +63,7 @@ return; } pthread_attr_t attr; + pthread_attr_init(&attr); CHECK_EQ(pthread_getattr_np(pthread_self(), &attr), 0); uptr stacksize = 0; void *stackaddr = 0;