diff options
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_common.cc')
| -rw-r--r-- | compiler-rt/lib/lsan/lsan_common.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan_common.cc b/compiler-rt/lib/lsan/lsan_common.cc index 3523049d37a..d54f56958e5 100644 --- a/compiler-rt/lib/lsan/lsan_common.cc +++ b/compiler-rt/lib/lsan/lsan_common.cc @@ -848,7 +848,13 @@ int __lsan_is_turned_off() { SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE const char *__lsan_default_suppressions() { +#if SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT + // The actual string allocation happens here (for more details refer to the + // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT definition). + return "leak:*_dl_map_object_deps*"; +#else return ""; +#endif // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT } #endif } // extern "C" |

