Valgrind understanding bytes allocated increase in heap summary?
问题 I have been looking at debugging the memory usage in a forking TCP server. I think I am doing pretty well, I just can't seem to find information on the 'bytes allocated' number in the 'heap summary'. This number seems to be ever increasing the longer my server runs: ==27526== ==27526== HEAP SUMMARY: ==27526== in use at exit: 0 bytes in 0 blocks ==27526== total heap usage: 113 allocs, 113 frees, 283,043 bytes allocated ==27526== ==27526== All heap blocks were freed -- no leaks are possible =