diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-18 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-07-19 17:12:44 +0200 |
commit | 58b862072c97c17133f3b700b71edf69ce0a7efe (patch) | |
tree | 38bf7918ccf54690290189bc8c8c57d652ff9a4a | |
parent | 251878ebc4a86b3f9c94992d89c42d3a0a60cf68 (diff) | |
download | rust-58b862072c97c17133f3b700b71edf69ce0a7efe.tar.gz |
Document AddressSanitizer memory leak detection defaults
-rw-r--r-- | src/doc/unstable-book/src/compiler-flags/sanitizer.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/sanitizer.md b/src/doc/unstable-book/src/compiler-flags/sanitizer.md index c15f339783f..93908e9190e 100644 --- a/src/doc/unstable-book/src/compiler-flags/sanitizer.md +++ b/src/doc/unstable-book/src/compiler-flags/sanitizer.md @@ -26,6 +26,9 @@ of bugs: * Double-free, invalid free * Memory leaks +The memory leak detection is enabled by default on Linux, and can be enabled +with runtime flag `ASAN_OPTIONS=detect_leaks=1` on macOS. + AddressSanitizer is supported on the following targets: * `x86_64-apple-darwin` |