Question about malloc() and free()

Robert S. Sutor rssutor at broccoli.princeton.edu
Fri Aug 31 08:37:44 AEST 1990


Another good argument to free what you have malloc'ed, as has been stated
before (here?), is that someone might decode to use your program or functions
as subroutines of another program.  In that case it is definitely not a good
idea to leave dead data tying up memory.



More information about the Comp.lang.c mailing list