mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
memory leak if device name is not found.
This commit is contained in:
1 parent
f1a19118e5
commit
21aecde5f6
2 files changed
+9
-1
No files matched your search
@@ -797,7 +797,10 @@ grub_efidisk_get_device_name (grub_efi_handle_t *handle)
|
||||
dup_ldp->length[1] = 0;
|
||||
|
||||
if (!get_diskname_from_path (dup_dp, device_name))
|
||||
return 0;
|
||||
{
|
||||
grub_free (dup_dp);
|
||||
return 0;
|
||||
}
|
||||
parent = grub_disk_open (device_name);
|
||||
grub_free (dup_dp);
|
||||
|
||||
|
||||
Reference in new issue
Block a user