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

Fix memory leak in ipAddressPrefixTable_data_access.c #183

Closed
wants to merge 1 commit into from

Conversation

urs-k
Copy link
Contributor

@urs-k urs-k commented Sep 16, 2020

The memory was leaked when, while populating ipAddressPrefixTable, "do we already have this prefix?" was true and no CONTAINER_INSERT happened afterwards. On my test system this always happened. In addition, the iterator was not released if memory allocation failed later, and the result of CONTAINER_INSERT was not checked.

bvanassche pushed a commit that referenced this pull request Sep 21, 2020
See also #183.

[ bvanassche: adjusted commit message and reindented code ]
@bvanassche
Copy link
Contributor

A slightly modified patch has been applied on the v5.9 and master branches. Thanks for the patch!

@bvanassche bvanassche closed this Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants