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

zebra: Do not forget to free opaque data for route entry #16576

Conversation

ton31337
Copy link
Member

No description provided.

@@ -4319,6 +4316,7 @@ struct route_entry *zebra_rib_route_entry_new(vrf_id_t vrf_id, int type,

void zebra_rib_route_entry_free(struct route_entry *re)
{
zapi_re_opaque_free(re->opaque);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we NULL that pointer too? it looks like there aren't a lot of callers to that function - maybe it could just take the re and do what's needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, fixed 👍

@mjstapp
Copy link
Contributor

mjstapp commented Aug 13, 2024

Love this idea - just had one question

@ton31337 ton31337 force-pushed the fix/free_opaque_data_of_route_entry branch from 32b9c30 to 1e288c9 Compare August 13, 2024 15:00
@github-actions github-actions bot added size/M and removed size/S labels Aug 13, 2024
Copy link
Contributor

@mjstapp mjstapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice- thanks

@donaldsharp donaldsharp merged commit 90a50fd into FRRouting:master Aug 13, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/free_opaque_data_of_route_entry branch August 13, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants