undo some hunks that were removed by mistake

This commit is contained in:
BVK Chaitanya 2010-04-27 20:59:45 +05:30
parent f07ccea799
commit b84cac2a36

View file

@ -55,6 +55,8 @@ grub_realloc (void *ptr, grub_size_t size)
{
void *ret;
ret = realloc (ptr, size);
if (!ret)
grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of memory");
return ret;
}
@ -76,5 +78,8 @@ grub_memalign (grub_size_t align, grub_size_t size)
grub_util_error ("grub_memalign is not supported");
#endif
if (!p)
grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of memory");
return p;
}