Error summary in Valgrind output?

橙三吉。 提交于 2019-12-05 08:35:41

Memory leaks are not considered errors, they don't effect the logic of the program.

Errors are things such as invalid reads and writes.

Updated as result of comment: The invalid reads and writes in test 1 are for 5 different areas of memory which are accessed 98307 times.

Looking at the leaks, the large indirect losses in test 1 may indicated a linked data structure where only the root has been deleted.

The leaks in test 2 aren't too bad. As valgrind suggests rerun with --leak-check=full which should indicate which bit of code is causing the problem.

A full explanation of the errors can be found here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!