xnu: fix memory leak
Found by: Coverity scan. CID: 96663
This commit is contained in:
parent
9daf7aae8b
commit
29862fdc3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue