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 :) >