From eba724a1288b60ab35df4dfe21d461d0c4050b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de> Date: Fri, 9 Sep 2016 10:19:18 +0200 Subject: [PATCH] * src/utils.c (stable_sort): Use xmalloc instead of malloc --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 31983ccf..9ab1b907 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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); }