Question 7.24

Must I free allocated memory before the program exits?


You shouldn't have to. A real operating system definitively reclaims all memory when a program exits. Nevertheless, some personal computers are said not to reliably recover memory, and all that can be inferred from the ANSI/ISO C Standard is that this is a ``quality of implementation issue.''

References: ANSI Sec. 4.10.3.2
ISO Sec. 7.10.3.2


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback