Skip to content

Commit 5dce966

Browse files
committed
address various PR feedback
1 parent 0a7a103 commit 5dce966

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/code-quality/c26865.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: Warning C26865
44
ms.date: 10/03/2022
55
f1_keywords: ["C26865", "ALLOCATION_DEALLOCATION_MISMATCH", "__WARNING_ALLOCATION_DEALLOCATION_MISMATCH"]
66
helpviewer_keywords: ["C26865"]
7-
ms.assetid: 2fbe9dc5-fa43-47b9-97a7-3f8215da1d40 # TODO (@carsonradtke): I generated this with `PS > (New-Guid).ToString()`. Is that OK?
7+
ms.assetid: 2fbe9dc5-fa43-47b9-97a7-3f8215da1d40
88
---
99
# Warning C26865
1010

1111
> Memory allocated with '\<allocation-function\>' is being deallocated with '\<wrong-deallocation-function\>'. Use '\<correct-deallocation-function\>' instead.
1212
1313
## Remarks
1414

15-
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.
15+
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 results in undefined behavior according to C/C++ and the Microsoft MSVC implementation.
1616

1717
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't always distinguish between these situations.
1818

docs/code-quality/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ items:
661661
href: ../code-quality/c26863.md
662662
- name: Warning C26864
663663
href: ../code-quality/c26864.md
664+
- name: Warning C26864
665+
href: ../code-quality/c26865.md
664666
- name: Warning C28020
665667
href: ../code-quality/c28020.md
666668
- name: Warning C28021

0 commit comments

Comments
 (0)