...
Resources must not be leaked as a result of throwing an exception, including during the construction of an object.
This rule is a subset subset of MEM51-CPP. Properly deallocate dynamically allocated resources, as all failures to deallocate resources violate that rule.
Noncompliant Code Example
...