use malloc instead of xmalloc
6 files changed