Re: Memory leaking..
On Thu, 15 Nov 2007 01:58:44 -0800 (PST), "dSpam@arcor.de "
<dSpam@arcor.de wrote in comp.lang.c:
Yes, he can. As far as the C language is concerned, and that's the
only thing that counts here, free() was properly called on a pointer
returned from malloc(). Since the free() function cannot fail if
called correctly, as it is in this case, the memory was freed.
Neither Ian nor I have to know much about valgrind, the Magna Carta,
or a Comcast commercial featuring the Slowskys, to state that if they
say this memory was not freed, the are wrong.
The memory was freed in the only context that matters in this group.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
On Thu, 15 Nov 2007 01:58:44 -0800 (PST), "dSpam@arcor.de "
<dSpam@arcor.de wrote in comp.lang.c:
On 15 Nov., 08:20, Ian Collins <ian-n...@hotmail.co mwrote:
>
If you've no idea what something means, you cannot know that it is
wrong. (But of course you can say it regardless.)
gNash wrote:
I've no idea, never having used valgrind. All I can say is it is wrong.
what it mean?
If you've no idea what something means, you cannot know that it is
wrong. (But of course you can say it regardless.)
only thing that counts here, free() was properly called on a pointer
returned from malloc(). Since the free() function cannot fail if
called correctly, as it is in this case, the memory was freed.
Neither Ian nor I have to know much about valgrind, the Magna Carta,
or a Comcast commercial featuring the Slowskys, to state that if they
say this memory was not freed, the are wrong.
The memory was freed in the only context that matters in this group.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
Comment