You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/c26408.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ ms.topic: "conceptual"
5
5
f1_keywords: ["C26408"]
6
6
helpviewer_keywords: ["C26408"]
7
7
ms.assetid: 55b0706f-1107-41c1-8ad0-c9e1e86a3b8c
8
+
description: CppCoreCheck rule that enforces C++ Core Guidelines R.10
8
9
---
9
10
# C26408 NO_MALLOC_FREE
10
11
@@ -15,3 +16,23 @@ This warning flags places where `malloc` or `free` is invoked explicitly in acco
15
16
- To detect malloc() we check if a call invokes a global function with name "malloc" or "std::malloc". The function must return a pointer to **`void`** and accept one parameter of unsigned integral type.
16
17
17
18
- To detect free() we check global functions with names "free" or "std::free" which return no result and accept one parameter, which is a pointer to **`void`**.
0 commit comments