Move the malloc checking from module 'oset' to new module 'xoset'.