-
Notifications
You must be signed in to change notification settings - Fork 114
Fix memory leak in get_map and get_map_bytes functions. #324
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
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
966a230
to
f8bb730
Compare
Signed-off-by: Javier Atadia <[email protected]>
f8bb730
to
c395658
Compare
Hi! Thanks for finding the memory leak and providing this fix... Do you have a reproducer and/or test that we could add to the CI to catch this class of issues in the future? |
I was testing compiling the filter and deploying it, after some request you can clearly see that the memory starts to grow. Now checking If I can add a unit test, I've found several libraries that could be used for this mockalloc and allocation_counter, etc. Any suggestion? |
Signed-off-by: Javier Atadia <[email protected]>
1c9e29d
to
86100b1
Compare
Test added |
Apologies for the delay. The Notably, #287 also incorrectly uses Having said that, that's a much bigger undertaking, and it shouldn't block this fix, so could you revert this PR to a version without the |
Hi! I notice this has been waiting for a while and I'm interested in this fix as well. I don't want to steal the thunder for this fix but would be happy to open a new PR with just the fix and without the additional test if that helps get this through. |
@joesbigidea thanks for the nudge, this merge is way overdue. I'll merge it as-is once #327 is merged to fix the CI. |
Signed-off-by: Piotr Sikora <[email protected]>
No functional changes other than reusing existing utils::tests::SERIALIZED_MAP instead of its copy. Signed-off-by: Piotr Sikora <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@mpwarres could you take a look as well? I've made some small changes, and I don't want to self-approve. |
Ack, taking a look |
No description provided.