Re: Another Understanding Pointers Question

From: Materialised (Materialised_at_privacy.net)
Date: 05/11/04


Date: Tue, 11 May 2004 03:59:16 +0100

Darrell Grainger wrote:
<snip>
>
>
> Lots of allocating of memory in the functions but absolutely not call to
> free(). That would be a memory leak.
>
> free(test4);
> free(test3);
> free(test2);
> free(test);
>
>
> return 0;
>}
Am I wrong in assuming that memory is automatically free()'ed at the end
of the program?

-- 
------
Materialised
perl -e 'printf "%silto%c%sck%ccodegurus%corg%c", "ma", 58, "mi", 64, 
46, 10;'