valgrind and openmp, still reachable and possibly lost, is that bad?

后端 未结 1 1677
臣服心动
臣服心动 2020-12-01 16:51

c++ newbie here.

I\'ve been improving my memory management skills over the last few days, and my program no longer leaks memory according to valgrind. In fact, I get

相关标签:
1条回答
  • 2020-12-01 17:33

    Still reachable is not a memory leak.

    Still reachable means that a block of memory has not been freed but there are still valid pointers to the start of that block in registers or memory that has not been freed.

    You need to have a look at the Valgrind FAQ. The actual reason for libgomp causing the warning is explained here.

    0 讨论(0)
提交回复
热议问题