Mail Archives: djgpp/1995/02/26/22:40:05
Is it me or is topline not updated when I free something?
I was concerned that my program seemed to be taking 3 times as much
memory as it should, so I traced through it to make sure it was calling
free. It was, but topline didn't change.
This is how my program seems to go:
malloc 230k - topline goes up 475k
free 50k - topline stays where it is
malloc 77k - topline goes up 120k
free 77k - topline stays where it is
Obviously at least some of this is still my fault. But I was _there_
when it free'ed memory - I _saw_ it happen... and topline didn't do
anything at all. It just sat there, letting all this innocent memory get
massacred. How can I stand by and watch this atrocity? Please, someone,
help me end this!
Kim
- Raw text -