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 issue caused by append of group slice to itself. #5611

Merged
merged 2 commits into from Oct 29, 2018

Conversation

c2nes
Copy link
Contributor

@c2nes c2nes commented Oct 25, 2018

The slice returned by collectGroupsReverseDFS is an updated copy of
the slice given to it when called. Appending pGroups to groups
therefore led to expontential memory usage as the slice was repeatedly
appended to itself.

Fixes #5605

The slice returned by `collectGroupsReverseDFS` is an updated copy of
the slice given to it when called. Appending `pGroups` to `groups`
therefore led to expontential memory usage as the slice was repeatedly
appended to itself.

Fixes hashicorp#5605
@chrishoffman chrishoffman added this to the 0.12 milestone Oct 25, 2018
@vishalnayak vishalnayak merged commit e54d1cb into hashicorp:master Oct 29, 2018
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

3 participants