Skip to content

Commit c6184f0

Browse files
author
Colin Robertson
authored
Merge pull request #2370 from JordanMaples/patch-2
Add C++ Core Guidelines link on C26405
2 parents b616635 + 7b82a1a commit c6184f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/code-quality/c26405.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.assetid: 2034d961-3ec5-4184-bbef-aa792e4c03c0
88
---
99
# C26405 DONT_ASSIGN_TO_VALID
1010

11-
If an owner pointer already points to a valid memory buffer, it must not be assigned to another value without releasing its current resource first. Such assignment may lead to a resource leak even if the resource address is copied into some raw pointer (because raw pointers shouldn’t release resources).
11+
If an owner pointer already points to a valid memory buffer, it must not be assigned to another value without releasing its current resource first. Such assignment may lead to a resource leak even if the resource address is copied into some raw pointer (because raw pointers shouldn’t release resources). For more information, see the [C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#r3-a-raw-pointer-a-t-is-non-owning).
1212

1313
## Example 1: Overwriting an owner in a loop
1414

0 commit comments

Comments
 (0)