diff --git a/doc/contribute/coding_guidelines/index.rst b/doc/contribute/coding_guidelines/index.rst index 2b465376067..53be4c860a7 100644 --- a/doc/contribute/coding_guidelines/index.rst +++ b/doc/contribute/coding_guidelines/index.rst @@ -761,6 +761,11 @@ severity and the equivlent rules from other standards for reference. - All resources obtained dynamically by means of Standard Library functions shall be explicitly released - N/A - `Rule 22.1 `_ + * - Rule 22.2 + - Mandatory + - A block of memory shall only be freed if it was allocated by means of a Standard Library function + - N/A + - `Rule 22.2 `_ * - Rule 22.3 - Required - The same file shall not be open for read and write access at the same time on different streams