OpenSSL EVP泄漏字节

时间:2016-03-09 05:49:42

标签: c memory-leaks openssl valgrind evp-cipher

我正在使用OpenSSL's EVP routine并且无法消除所有仍可访问的内存。上面链接的教程泄漏了这么多:

==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

并添加了答案here,我能够将其归结为:

==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上看到了相互矛盾的答案,说明“仍然可以访问”的内存是内存泄漏而另一些人则说它不是,因此我感到困惑。

0 个答案:

没有答案