-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Minor fix: Fix protoleak. #16101
Minor fix: Fix protoleak. #16101
Conversation
Signed-off-by: Kevin Baichoo <[email protected]>
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
I like the change but I think the description is wrong. The proto was only ever allocated on the stack, so using the set_allocated and release_ methods seems like the right way to prevent calls to |
Yep that's correct. We're dealing with raw pointers and ownership isn't explicit as using a smart ptr. |
Can I get a review @envoyproxy/maintainers ? This is a minor fix to a test. Thanks! |
Signed-off-by: Kevin Baichoo <[email protected]> Commit Message: Fixed proto leaks. Additional Description: Let protos manage memory themselves vs explicitly handling it with set_foo and release_foo Risk Level: Low Testing: NA Docs Changes: NA Release Notes: NA Platform Specific Features: NA Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Kevin Baichoo [email protected]
Commit Message: Fixed proto leaks.
Additional Description: Let protos manage memory themselves vs explicitly handling it with
set_foo
andrelease_foo
Risk Level: Low
Testing: NA
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA