我正在使用OpenSSL 的 EVP 例程,无法消除所有仍可访问的内存。上面链接的教程泄漏了很多:
==30413== LEAK SUMMARY:
==30413== definitely lost: 0 bytes in 0 blocks
==30413== indirectly lost: 0 bytes in 0 blocks
==30413== possibly lost: 0 bytes in 0 blocks
==30413== still reachable: 2,200 bytes in 27 blocks
==30413== suppressed: 0 bytes in 0 blocks
加上这里的答案,我可以把它归结为:
==30437== LEAK SUMMARY:
==30437== definitely lost: 0 bytes in 0 blocks
==30437== indirectly lost: 0 bytes in 0 blocks
==30437== possibly lost: 0 bytes in 0 blocks
==30437== still reachable: 744 bytes in 13 blocks
==30437== suppressed: 0 bytes in 0 blocks
有没有可能消除这些?这是我什至应该打扰的事情吗?
我在 SO 上看到了相互矛盾的答案,指出“仍然可以访问”的内存是内存泄漏,而其他人则说不是,因此我感到困惑。