Skip to content

fallback: fix memory leak in find_boot_csv()#790

Open
yueyuankun wants to merge 1 commit intorhboot:mainfrom
yueyuankun:fix/fallback
Open

fallback: fix memory leak in find_boot_csv()#790
yueyuankun wants to merge 1 commit intorhboot:mainfrom
yueyuankun:fix/fallback

Conversation

@yueyuankun
Copy link

In find_boot_csv(), bootcsv and bootarchcsv are allocated by StrDuplicate() but were not being freed before the function returns, causing a memory leak.

Copy link
Member

@vathpela vathpela left a comment

Choose a reason for hiding this comment

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

Looks right to me. Please fix the DCO.

In find_boot_csv(), bootcsv and bootarchcsv are allocated by
StrDuplicate() but were not being freed before the function returns,
causing a memory leak.

Signed-off-by: yueyuankun <yueyuankun@kylinos.cn>
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.

2 participants