Why doesn’t mallinfo’s uordblks reflect freed memory?
I’m trying to use mallinfo2 to get a snapshot of how many bytes of memory are allocated at a particular time for testing purposes, however it’s not behaving as I would expect. My understanidng is that mallinfo2().uordblks should reflect the current amount of memory in-use by mallocs. When a chunk of memory is freed uordblks should decrease accordingly. However, this is not what I’m seeing at all.