Half of allocation functions in space_def_dup and space_def_new already use xmalloc. Use xmalloc for the rest of allocations. NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring