Ensure allocation field of BufferContents is initialized. Fixes
possible bad free at destructor time.