edid: Fix memory leak on UEFI error path

This commit is contained in:
Mintsuki 2026-01-12 13:45:27 +01:00
parent db69f0d4c3
commit 96d9167bc3
No known key found for this signature in database
GPG Key ID: 1F3C021BECA23821

View File

@ -73,6 +73,7 @@ struct edid_info_struct *get_edid_info(EFI_HANDLE gop_handle) {
goto success;
fail:
pmm_free(buf, sizeof(struct edid_info_struct));
printv("edid: Could not fetch EDID data.\n");
return NULL;