-
Notifications
You must be signed in to change notification settings - Fork 157
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
Memory Leak occurs when GraphicsOutput::query_mode
is called.
#968
Comments
Good catch! For reference: https://uefi.org/specs/UEFI/2.10/12_Protocols_Console_Support.html#efi-graphics-output-protocol-querymode |
Hm, I don't see how we can easily fix this without having access to the boot services. Probably, this is the point where we should consider #905, i.e., having the boot services stored in a global static. What do you think, @nicholasbishop ? I've set up a PR that comes with a breaking change: @JarlEvanson Did you spot this by looking at the code or by with some nice debugging tooling? I'm curious |
I was looking at the specification and noticed that it returned a callee allocated buffer, but the |
Should be fixed now with Philipp's PR merged. Thanks again for filing this issue :) Re comment 3, added a note about this to #893 (the "add a global table pointer" issue). |
A memory leak occurs when
GraphicsOutput::query_mode
is called. The UEFI specification specifies that theGraphicsOutputModeInformation
is returned in a callee-allocated buffer, butGraphicsOutput::query_mode
does not free the buffer.The text was updated successfully, but these errors were encountered: