Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boiledPeanuts123 opened this issue Jul 24, 2024 · 2 comments

Comments

@boiledPeanuts123
Copy link

boiledPeanuts123 commented Jul 24, 2024

123
As shown in the figure

123
如图

TRANS_BY_GITHUB_AI_ASSISTANT

@PioLing
Copy link
Contributor

PioLing commented Jul 31, 2024

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

@xia-chu
Copy link
Member

xia-chu commented Aug 1, 2024

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

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

TRANS_BY_GITHUB_AI_ASSISTANT

@alexliyu7352 alexliyu7352 changed the title SSL_Box的_read_bio和_write_bio没有BIO_free释放内存是否泄漏? Does SSL_Box's _read_bio and _write_bio leak memory if they don't release memory with BIO_free? Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants