mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
xnu: Add missing error check.
Found by: Coveriy scan.
This commit is contained in:
1 parent
e12c3bed90
commit
a05a6e6f92
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user