goto out_wimlib_free;
wim_reshdr_to_desc_and_blob(&reshdr, pwm, metadata_rdesc,
imd->metadata_blob);
+ pwm->refcnt++;
if (i == image) {
/* Metadata resource is for the image being extracted.
ret = read_metadata_resource(imd);
if (ret)
goto out_wimlib_free;
- imd->modified = 1;
} else {
/* Metadata resource is not for the image being
* extracted. Skip over it. */