if (wim) {
wim->in_fd.fd = -1;
wim->out_fd.fd = -1;
+ INIT_LIST_HEAD(&wim->subwims);
}
- INIT_LIST_HEAD(&wim->subwims);
return wim;
}
wim->lookup_table = table;
wim->refcnts_ok = 1;
wim->compression_type = ctype;
+ wim->out_compression_type = ctype;
*wim_ret = wim;
return 0;
out_free:
} else {
wim->compression_type = WIMLIB_COMPRESSION_TYPE_NONE;
}
+ wim->out_compression_type = wim->compression_type;
if (open_flags & WIMLIB_OPEN_FLAG_CHECK_INTEGRITY) {
ret = check_wim_integrity(wim, progress_func);
if (filedes_valid(&wim->out_fd))
filedes_close(&wim->out_fd);
+ wimlib_lzx_free_context(wim->lzx_context);
free_lookup_table(wim->lookup_table);