Next: 10 Expressions  Up: 9 Exceptions  Previous: High Integrity CPP Guideline 9.5  Contents

High Integrity CPP Guideline 9.6   Each application that acquires resources that are not automatically freed at program termination must use some mechanism to ensure that acquired resources are freed if the program unexpectedly terminates.

Justification

This ensures that an error condition does not corrupt persistent resources such as databases.

See also

Guideline 9.5


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP