undo some hunks that were removed by mistake
This commit is contained in:
parent
f07ccea799
commit
b84cac2a36
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,8 @@ grub_realloc (void *ptr, grub_size_t size)
|
||||||
{
|
{
|
||||||
void *ret;
|
void *ret;
|
||||||
ret = realloc (ptr, size);
|
ret = realloc (ptr, size);
|
||||||
|
if (!ret)
|
||||||
|
grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of memory");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,5 +78,8 @@ grub_memalign (grub_size_t align, grub_size_t size)
|
||||||
grub_util_error ("grub_memalign is not supported");
|
grub_util_error ("grub_memalign is not supported");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!p)
|
||||||
|
grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of memory");
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue