fix: adaption to xmalloc