diff -r bb3eae81aae8 -r f15c7d6aebb9 ucx/dlist.c --- a/ucx/dlist.c Fri Oct 12 12:09:00 2012 +0200 +++ b/ucx/dlist.c Fri Oct 12 12:12:59 2012 +0200 @@ -117,7 +117,8 @@ UcxDlist *ucx_dlist_sort_merge(int length, UcxDlist* restrict ls, UcxDlist* restrict le, UcxDlist* restrict re, cmp_func fnc, void* data) { - ucx_dynarray_new(UcxDlist*, sorted, length); + + UcxDlist** sorted = (UcxDlist**) malloc(sizeof(UcxDlist*)*length); UcxDlist *rc, *lc; lc = ls; rc = le; @@ -152,7 +153,7 @@ sorted[length-1]->next = NULL; UcxDlist *ret = sorted[0]; - ucx_dynarray_free(sorted); + free(sorted); return ret; }