Skip to content
New issue

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

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

Already on GitHub? # to your account

memory leak in butil::ObjectPoolAllocator #2724

Closed
live4thee opened this issue Aug 6, 2024 · 0 comments · Fixed by #2725
Closed

memory leak in butil::ObjectPoolAllocator #2724

live4thee opened this issue Aug 6, 2024 · 0 comments · Fixed by #2725

Comments

@live4thee
Copy link
Contributor

Describe the bug (描述bug)

When using butil::ObjectPoolAllocator to construct butil::MPSCQueue. The returned pointer will be accidentally saved in a object pool of void pointers.

To Reproduce (复现方法)

Construct butil::MPSCQueue with butil::ObjectPoolAllocator, and check memory consumption.

Expected behavior (期望行为)

No memory leak.

Versions (各种版本)
OS: ALL supported OS.
Compiler: ALL supported compiler.
brpc: bRPC version after MPSQ was introduced.
protobuf: ALL supported version.

Additional context/screenshots (更多上下文/截图)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant