undo some hunks that were removed by mistake

This commit is contained in:
BVK Chaitanya committed 2010-04-27 20:59:45 +05:30
1 parent f07ccea799
commit b84cac2a36
1 file changed
+5
+5
View File
@@ -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;
} }