Fix unpack message's saving space issue, if already alloc memery then if the size is not enough we should realloc the memery