Use calloc in unpack