Skip to content

Commit

Permalink
Document AddressSanitizer memory leak detection defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Jul 19, 2020
1 parent 251878e commit 58b8620
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/unstable-book/src/compiler-flags/sanitizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 58b8620

Please sign in to comment.