Skip to content

Commit 8d168de

Browse files
authored
Update error-alloc-dealloc-mismatch.md
use a lightbox to make small image more visible. restore example name
1 parent 8b764eb commit 8d168de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The `alloc`/`dealloc` mismatch functionality in AddressSanitizer is off by defau
1919
## Example
2020

2121
```cpp
22+
// example1.cpp
2223
// Demonstrate alloc-dealloc-mismatch error
2324
#include <stdio.h>
2425
#include <stdlib.h>
@@ -43,7 +44,7 @@ int main(int argc, char* argv[])
4344
}
4445
```
4546
46-
Run the following commands in a Visual Studio 2019 version 16.9 or later [developer command prompt](../build/building-on-the-command-line.md#developer_command_prompt_shortcuts) to run the example:
47+
In a Visual Studio 2019 version 16.9 or later [developer command prompt](../build/building-on-the-command-line.md#developer_command_prompt_shortcuts), run the following commands to see an exampe of `alloc_dealloc_mismatch`:
4748
4849
```cmd
4950
cl example1.cpp /fsanitize=address /Zi
@@ -53,7 +54,7 @@ devenv /debugexe example1.exe 2
5354

5455
### Output
5556

56-
:::image type="content" source="media/alloc-dealloc-mismatch-example-1.png" alt-text="Screenshot of debugger displaying alloc-dealloc-mismatch error in example 1.":::
57+
:::image type="content" source="media/alloc-dealloc-mismatch-example-1.png" alt-text="Screenshot of debugger displaying alloc-dealloc-mismatch error in example 1." lightbox="media/media/alloc-dealloc-mismatch-example-1.png":::
5758

5859
## See also
5960

0 commit comments

Comments
 (0)