Realloc and free the write buffer