xnu: fix memory leak

Found by: Coverity scan.
CID: 96663
This commit is contained in:
Andrei Borzenkov 2016-01-12 21:43:43 +03:00
parent 9daf7aae8b
commit 29862fdc3a

View file

@ -338,7 +338,7 @@ grub_xnu_devprop_add_property_utf16 (struct grub_xnu_devprop_device_descriptor *
utf8 = grub_malloc (namelen * 4 + 1);
if (!utf8)
{
grub_free (utf8);
grub_free (utf16);
return grub_errno;
}