use xmalloc instead of malloc
3 files changed