ZLToolKit icon indicating copy to clipboard operation
ZLToolKit copied to clipboard

Does `SSL_Box`'s `_read_bio` and `_write_bio` leak memory if they don't release memory with `BIO_free`?

Open boiledPeanuts123 opened this issue 1 year ago • 2 comments

123 As shown in the figure

123 如图

TRANS_BY_GITHUB_AI_ASSISTANT

boiledPeanuts123 avatar Jul 24 '24 08:07 boiledPeanuts123

std::unique_ptr<BIO, decltype(&BIO_free)> _read_bio(BIO_new(BIO_s_mem()), BIO_free); ?

PioLing avatar Jul 31 '24 01:07 PioLing

This should have a memory leak problem. I'll test it.

这个应该有内存泄露的问题 我测试下

TRANS_BY_GITHUB_AI_ASSISTANT

xia-chu avatar Aug 01 '24 03:08 xia-chu