summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2013-07-22 12:38:17 +0000
committerSergey Matveev <earthdok@google.com>2013-07-22 12:38:17 +0000
commit62519eb72ec1005d794685c1ec09df7c37631b27 (patch)
treec951530be7effb0ab13ddfb18e880d11975558cc /lib/sanitizer_common/sanitizer_flags.h
parent841b6f29df24642cfbaa6e6fba5632d1712569ae (diff)
[lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.
Also move detect_leaks to common flags. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r--lib/sanitizer_common/sanitizer_flags.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.h b/lib/sanitizer_common/sanitizer_flags.h
index 16cbc645c..f3f4a26f0 100644
--- a/lib/sanitizer_common/sanitizer_flags.h
+++ b/lib/sanitizer_common/sanitizer_flags.h
@@ -39,6 +39,8 @@ struct CommonFlags {
int malloc_context_size;
// Write logs to "log_path.pid" instead of stderr.
const char *log_path;
+ // Enable memory leak detection.
+ bool detect_leaks;
};
extern CommonFlags common_flags_dont_use_directly;