Skip to content

Commit 98d4d95

Browse files
committed
fix last couple warning from bots
1 parent b5ebc65 commit 98d4d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-quality/c26840.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.assetid: 2fbe9dc5-fa43-47b9-97a7-3f8215da1d40 # TODO (@carsonradtke): I gener
1414

1515
This warning indicates that the memory was allocated with one family of allocation functions, but was freed with a deallocation function from a different family. This usage is undefined behavior according to the C++ standard and the Microsoft C++ implementation.
1616

17-
The exact ramifications of this defect are difficult to predict. It might result in leaks for classes with destructors that perform memory deallocation. It could cause inconsistent behavior for classes with destructors that perform semantically significant operations, or memory corruptions and crashes. In other cases the mismatch might be unimportant, depending on the implementation of the compiler and its libraries. Analysis tools can not always distinguish between these situations.
17+
The exact ramifications of this defect are difficult to predict. It might result in leaks for classes with destructors that perform memory deallocation. It could cause inconsistent behavior for classes with destructors that perform semantically significant operations, or memory corruptions and crashes. In other cases the mismatch might be unimportant, depending on the implementation of the compiler and its libraries. Analysis tools cannot always distinguish between these situations.
1818

1919
If memory is allocated with one family of allocation functions, it should be freed with a matching deallocation function.
2020

@@ -27,7 +27,7 @@ C26840 covers the following allocation/deallocation pairs:
2727
- Windows `GlobalAlloc` must be deallocated with `GlobalFree`.
2828
- Windows `LocalAlloc` must be deallocated with `LocalFree`.
2929
- Windows `MIDL_user_allocate` must be deallocated with `MIDL_user_free`.
30-
- COM `CoTaskMemAlloc` must be deallocated with `CoTaskMemFree`.
30+
- Component Object Model (COM) `CoTaskMemAlloc` must be deallocated with `CoTaskMemFree`.
3131

3232
Code analysis name: `ALLOCATION_DEALLOCATION_MISMATCH`
3333

0 commit comments

Comments
 (0)