X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fextract.c;h=532d1b1fcd82ea6c8b3d2823647fb21010e37ab4;hb=10625fec55941b45fc8ae6cf4b74fa8e629d21a7;hp=0d7ec687a828fdba4740ae3d4bf07d4acc6cd36b;hpb=00d7680491529e7fd95f5721bd01795a730fc440;p=wimlib diff --git a/src/extract.c b/src/extract.c index 0d7ec687..532d1b1f 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1929,6 +1929,7 @@ wimlib_extract_image_from_pipe_with_progress(int pipe_fd, 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.