summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lsan/lsan.cc')
-rw-r--r--lib/lsan/lsan.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/lsan/lsan.cc b/lib/lsan/lsan.cc
index 25389f62a..02b5ac1a9 100644
--- a/lib/lsan/lsan.cc
+++ b/lib/lsan/lsan.cc
@@ -25,16 +25,6 @@ bool lsan_init_is_running;
namespace __lsan {
-static void InitializeCommonFlags() {
- CommonFlags *cf = common_flags();
- SetCommonFlagsDefaults(cf);
- cf->external_symbolizer_path = GetEnv("LSAN_SYMBOLIZER_PATH");
- cf->malloc_context_size = 30;
- cf->detect_leaks = true;
-
- ParseCommonFlagsFromString(cf, GetEnv("LSAN_OPTIONS"));
-}
-
///// Interface to the common LSan module. /////
bool WordIsPoisoned(uptr addr) {
return false;
@@ -50,7 +40,7 @@ extern "C" void __lsan_init() {
return;
lsan_init_is_running = true;
SanitizerToolName = "LeakSanitizer";
- InitializeCommonFlags();
+ InitCommonLsan(true);
InitializeAllocator();
InitTlsSize();
InitializeInterceptors();
@@ -62,7 +52,6 @@ extern "C" void __lsan_init() {
Symbolizer::GetOrInit();
- InitCommonLsan();
if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit)
Atexit(DoLeakCheck);
lsan_inited = true;