Re: simple c program. How does the memory size calculated in Valgrind

John Reiser <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
> ==123254== HEAP SUMMARY:
> ==123254==     in use at exit: 0 bytes in 0 blocks
> ==123254==   total heap usage: 6 allocs, 6 frees, 2,084 bytes allocated

"2,084 bytes allocated" is the sum of all 6 arguments that were passed to malloc(),
calloc() [possibly by calling malloc()], realloc() [at least the increase], etc.


_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.