Skip to content

fallback: fix memory leak in find_boot_csv()#790

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

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

Conversation

@yueyuankun

Copy link
Copy Markdown

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

@vathpela vathpela left a comment

Copy link
Copy Markdown
Member

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>
@yueyuankun

yueyuankun commented May 22, 2026

Copy link
Copy Markdown
Author

@vathpela DCO fixed.

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