My application hogs memory, but does not leak it. During analysis I discovered that most of the allocated memory comes from getc and fprintf calls who do malloc (16kb). I did not know that those functions allocate memory on the heap? Especially fprintf? How can I free it?
My application hogs memory, but does not leak it. During analysis I discovered that
Share
I forgot to call fflush on the streams before closing them… (turns out my setup does not allow fflushing the streams because they are still blocked by cancelled threads…). Thanks for your help!