joyent/mdata-client#1 various unchecked allocations