Valgrind claims there is unfreed memory. Is this bad?

后端 未结 7 1417
攒了一身酷
攒了一身酷 2021-01-06 13:15

Valgrind gives me the following leak summary on my code. However, I have freed all malloc\'ed memory. Is this a bad thing, or is this normal? My program is in c.

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 13:44

    These are not leaked and nothing to be concerned about. The memory was probably allocated by the C library. If you really want to know where they were allocated run with --leak-check=full --show-reachable=yes.

提交回复
热议问题