mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-03 06:48:17 +00:00
xnu: fix use after free
Found by: Coverity scan. CID: 96706
This commit is contained in:
parent
cd816bd236
commit
e261fcf4c6
@ -269,9 +269,9 @@ grub_xnu_devprop_add_property (struct grub_xnu_devprop_device_descriptor *dev,
|
||||
prop->data = grub_malloc (prop->length);
|
||||
if (!prop->data)
|
||||
{
|
||||
grub_free (prop);
|
||||
grub_free (prop->name);
|
||||
grub_free (prop->name16);
|
||||
grub_free (prop);
|
||||
return grub_errno;
|
||||
}
|
||||
grub_memcpy (prop->data, data, prop->length);
|
||||
|
Loading…
Reference in New Issue
Block a user