* 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:
Andrey Borzenkov 2013-02-26 22:45:00 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent f1a19118e5
commit 21aecde5f6
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
memory leak if device name is not found.
2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/normal/menu_entry.c (update_screen): remove

View File

@ -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);