Re: problems with free()

Bert Wesarg <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
On Tue, Apr 28, 2009 at 11:20, leo mueller <[email protected]> wrote:
> hi all,
>
> i got a little problem with free() ... i am allocating mem for a
> special struct and putting it afterwards
> into a linked list. allocating works fine, but freeing not. i'm
> tracking the program with htop. after
> allocating, the percentage of mem usage stays constant ...
Can you at least describe what do you expect to happen, and what does
not work with freeing?

bert
>
> the test-file is attached.
>
> any help is appreciated. big thanks :)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.