allocate_data
status = allocate_data(newBuf, size);
static status_t allocate_data(struct buf* buf, int size);