SUK:
==39487==
==39487== HEAP SUMMARY:
==39487== in use at exit: 0 bytes in 0 blocks
==39487== total heap usage: 9,794,483 allocs, 9,794,483 frees, 264,131,598 bytes allocated
==39487==
==39487== All heap blocks were freed -- no leaks are possible
==39487==
==39487== For lists of detected and suppressed errors, rerun with: -s
==39487== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Tak jsem z toho poněkud zmatený. Proč tedy roste VIRT, RES?
BTW kompilace s -g; valgrind --leak-check=yes ./a.out