即使我编译和运行这样的程序:
当我运行
我正在使用
int main() {
return 0;
}
当我运行
valgrind --leak-check=yes ./a.out
时,我会得到以下的valgrind错误。==26391== LEAK SUMMARY:
==26391== definitely lost: 0 bytes in 0 blocks
==26391== indirectly lost: 0 bytes in 0 blocks
==26391== possibly lost: 72 bytes in 3 blocks
==26391== still reachable: 200 bytes in 6 blocks
==26391== suppressed: 18,528 bytes in 153 blocks
==26391== Reachable blocks (those to which a pointer was found) are not shown.
==26391== To see them, rerun with: --leak-check=full --show-leak-kinds=all
我正在使用
clang++ test.cpp
进行编译。我完全不知道该如何解决这个问题。
谢谢!