Move the malloc checking from module 'list' to new module 'xlist'.