Skip to content

shim: Fix memory leak in HTTP boot path#789

Open
yueyuankun wants to merge 1 commit intorhboot:mainfrom
yueyuankun:main
Open

shim: Fix memory leak in HTTP boot path#789
yueyuankun wants to merge 1 commit intorhboot:mainfrom
yueyuankun:main

Conversation

@yueyuankun
Copy link

In the HTTP boot path of read_image(), netbootname is allocated by str16_to_str8() but was not being freed after httpboot_fetch_buffer() returns, causing a memory leak.

In the HTTP boot path of read_image(), netbootname is allocated
by str16_to_str8() but was not being freed after httpboot_fetch_buffer()
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.

1 participant