I m working on a project and have been asked to check for memory leaks using Valgrind.
Here is the output:
Here is the output:
==950598== HEAP SUMMARY:
==950598== in use at exit: 8,892,733 bytes in 64,766 blocks
==950598== total heap usage: 381,987 allocs, 317,221 frees, 43,483,887 bytes allocated
==950598==
==950598== LEAK SUMMARY:
==950598== definitely lost: 368 bytes in 15 blocks
==950598== indirectly lost: 32 bytes in 1 blocks
==950598== possibly lost: 1,659,484 bytes in 1,798 blocks
==950598== still reachable: 7,142,081 bytes in 62,127 blocks
==950598== of which reachable via heuristic:
==950598== newarray : 78,768 bytes in 40 blocks
==950598== multipleinheritance: 232 bytes in 4 blocks
==950598== suppressed: 0 bytes in 0 blocks
==950598== Rerun with --leak-check=full to see details of leaked memory
==950598==
==950598== For lists of detected and suppressed errors, rerun with: -s
==950598== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
In the log file, all the definitely lost bytes are from QT libraries, this is a screenshot from the log file :
memory-leak-check
Does the Qt library cause memory leak?
New contributor
Leila Hmidene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.