Re: Another Understanding Pointers Question
From: Materialised (Materialised_at_privacy.net)
Date: 05/11/04
- Next message: Leor Zolman: "Re: Another Understanding Pointers Question"
- Previous message: Jack Klein: "Re: if(a);"
- In reply to: Darrell Grainger: "Re: Another Understanding Pointers Question"
- Next in thread: Richard Bos: "Re: Another Understanding Pointers Question"
- Reply: Richard Bos: "Re: Another Understanding Pointers Question"
- Reply: August Derleth: "Re: Another Understanding Pointers Question"
- Reply: Martin Dickopp: "Re: Another Understanding Pointers Question"
- Reply: Nick Keighley: "Re: Another Understanding Pointers Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;'
- Next message: Leor Zolman: "Re: Another Understanding Pointers Question"
- Previous message: Jack Klein: "Re: if(a);"
- In reply to: Darrell Grainger: "Re: Another Understanding Pointers Question"
- Next in thread: Richard Bos: "Re: Another Understanding Pointers Question"
- Reply: Richard Bos: "Re: Another Understanding Pointers Question"
- Reply: August Derleth: "Re: Another Understanding Pointers Question"
- Reply: Martin Dickopp: "Re: Another Understanding Pointers Question"
- Reply: Nick Keighley: "Re: Another Understanding Pointers Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]