Skip to content

Commit ab87729

Browse files
authored
Update error-alloc-dealloc-mismatch.md
1 parent 8e74a62 commit ab87729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sanitizers/error-alloc-dealloc-mismatch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Enables runtime detection of mismatched memory operations that may lead to undef
1414
- `new` must be paired with `delete`, not `free` or `delete[]`.
1515
- `new[]` must be paired with `delete[]`, not `delete` or `free`.
1616

17-
The `alloc`/`dealloc` mismatch functionality in AddressSanitizer is off by default for Windows. To enable it, run `set ASAN_OPTIONS=alloc_dealloc_mismatch=1` before running the program.
17+
In Windows, `alloc-dealloc-mismatch` error detection is off by default. To enable it, set the environment variable `set ASAN_OPTIONS=alloc_dealloc_mismatch=1` before running your program.
1818

1919
## Example
2020

0 commit comments

Comments
 (0)