This series removes a few cleanups by using unique_xmalloc_ptr. This also helps clarify the ownership rules of a few APIs. This series also includes a couple of minor (non-cleanup-related) code clarity improvements in related areas: moving some declarations out of defs.h, and a constification. Regression tested by the buildbot. Tom