Re: obj function hello()
- From: rpbg123@xxxxxxxxx (Roland Pibinger)
- Date: Sat, 10 Feb 2007 11:55:04 GMT
On Fri, 09 Feb 2007 14:43:45 +1300, Ian Collins wrote:
Ian Collins wrote:
int main(void) {Oops, malloc( sizeof *obj );
Obj* obj = malloc( sizeof obj );
Why malloc? Why a memory leak?
Best regards,
Roland Pibinger
.
- Follow-Ups:
- Re: obj function hello()
- From: Mark McIntyre
- Re: obj function hello()
- From: gert
- Re: obj function hello()
- References:
- obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: gert
- Re: obj function hello()
- From: Ian Collins
- Re: obj function hello()
- From: Ian Collins
- obj function hello()
- Prev by Date: Re: anti-aliasing
- Next by Date: Re: Implementing Realloc
- Previous by thread: Re: obj function hello()
- Next by thread: Re: obj function hello()
- Index(es):
Relevant Pages
|