-
Notifications
You must be signed in to change notification settings - Fork 149
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
XrdBuffManager leaks memory #424
Comments
We could do that but it still wouldn't be able to free any buffers that Andy On Wed, 12 Oct 2016, Georgios Bitzes wrote:
|
Hi Andy, Yes, of course that's acceptable. If the buffers are not eventually released back to the pool, and not free'd manually, that's probably a bug of the user of the class, and a valid case of a memory leak to be reported. |
Fixed in 4.6. |
Hi,
There's this note in the destructor of XrdBuffManager:
My unit tests for quarkdb involve lots of request parsing, which uses
XrdBuffManager
internally for memory recycling. Every unit test is independent of each other, meaning it sets up its own XrdBuffManager which gets deleted at the end, but the buffers are not freed.. This makes running a leak detector difficult, since at the end I get a ton of such messages:This might be worth fixing, if only to make the use of leak detectors more pleasant.
The text was updated successfully, but these errors were encountered: