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

No files matched your search

+4 -1
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);