Skip to content

cov: fix memleak - #195

Open
codingwei-lab wants to merge 1 commit into
lvmteam:mainfrom
codingwei-lab:main-pr
Open

cov: fix memleak#195
codingwei-lab wants to merge 1 commit into
lvmteam:mainfrom
codingwei-lab:main-pr

Conversation

@codingwei-lab

Copy link
Copy Markdown

If malloc fails in the loop, nodes that have been successfully allocated and added to the devs list are not released. All allocated nodes are now cleaned up before return 0.

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.

1 participant