if (wim) {
wim->in_fd.fd = -1;
wim->out_fd.fd = -1;
+ INIT_LIST_HEAD(&wim->subwims);
}
- INIT_LIST_HEAD(&wim->subwims);
return wim;
}
* intervening time...
*
* Warning: in Windows native builds, realpath() calls the
- * replacement function in win32.c.
+ * replacement function in win32_replacements.c.
*/
wim->filename = realpath(wimfile, NULL);
if (!wim->filename) {
if (filedes_valid(&wim->out_fd))
filedes_close(&wim->out_fd);
+ wimlib_lzx_free_context(wim->lzx_context);
free_lookup_table(wim->lookup_table);