xnu: fix memory leak
Found by: Coverity scan. CID: 96663
This commit is contained in:
parent
9daf7aae8b
commit
29862fdc3a
@ -338,7 +338,7 @@ grub_xnu_devprop_add_property_utf16 (struct grub_xnu_devprop_device_descriptor *
|
|||||||
utf8 = grub_malloc (namelen * 4 + 1);
|
utf8 = grub_malloc (namelen * 4 + 1);
|
||||||
if (!utf8)
|
if (!utf8)
|
||||||
{
|
{
|
||||||
grub_free (utf8);
|
grub_free (utf16);
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user