mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
* src/utils.c (stable_sort): Use xmalloc instead of malloc
This commit is contained in:
parent
66a9883c8f
commit
eba724a128
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user