xnu: Add missing error check.
Found by: Coveriy scan.
This commit is contained in:
parent
e12c3bed90
commit
a05a6e6f92
1 changed files with 2 additions and 0 deletions
|
@ -1378,6 +1378,8 @@ grub_xnu_fill_devicetree (void)
|
|||
name[len] = 0;
|
||||
|
||||
curvalue = grub_xnu_create_value (curkey, name);
|
||||
if (!curvalue)
|
||||
return grub_errno;
|
||||
grub_free (name);
|
||||
|
||||
data = grub_malloc (grub_strlen (var->value) + 1);
|
||||
|
|
Loading…
Reference in a new issue