assorted memory leak cleanups

tidy up a few stray memory allocations.  Note: these changes make
HumanReadable no longer re-entrant.