(diff_init): Don't use valloc; on older or buggy hosts, you can't

free the result.  Use page_aligned_alloc instead.
This commit is contained in:
Paul Eggert
2004-08-03 04:44:13 +00:00
parent 81460a0349
commit 6869d0f6b3

View File

@@ -54,9 +54,8 @@ static char *diff_buffer;
void
diff_init (void)
{
diff_buffer = valloc (record_size);
if (!diff_buffer)
xalloc_die ();
void *ptr;
diff_buffer = page_aligned_alloc (&ptr, record_size);
}
/* Sigh about something that differs by writing a MESSAGE to stdlis,