Memory allocation hygiene.

Found by Coverity.  Minor but worth keeping the noise down.