Skip to content

Commit 58b8620

Browse files
committedJul 19, 2020
Document AddressSanitizer memory leak detection defaults
1 parent 251878e commit 58b8620

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/doc/unstable-book/src/compiler-flags/sanitizer.md

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ of bugs:
2626
* Double-free, invalid free
2727
* Memory leaks
2828

29+
The memory leak detection is enabled by default on Linux, and can be enabled
30+
with runtime flag `ASAN_OPTIONS=detect_leaks=1` on macOS.
31+
2932
AddressSanitizer is supported on the following targets:
3033

3134
* `x86_64-apple-darwin`

0 commit comments

Comments
 (0)