* src/utils.c (stable_sort): Use xmalloc instead of malloc

This commit is contained in:
Tim Rühsen 2016-09-09 10:19:18 +02:00
parent 66a9883c8f
commit eba724a128

View File

@ -2430,7 +2430,7 @@ stable_sort (void *base, size_t nmemb, size_t size,
{
if (size > 1)
{
void *temp = malloc (nmemb * size);
void *temp = xmalloc (nmemb * size);
mergesort_internal (base, temp, size, 0, nmemb - 1, cmpfun);
xfree(temp);
}