X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwim.c;h=bf6ebbf0cbe494ca9ba1077fc9628c45fd83f649;hb=2254a0fc3f1d7af1151ee83f3458f44339b5028b;hp=97bb92a25cfe613ba44669af72ec7a48b9653b3b;hpb=df1050ef86e54f027912a15fe60bf67c8ab43d2c;p=wimlib diff --git a/src/wim.c b/src/wim.c index 97bb92a2..bf6ebbf0 100644 --- a/src/wim.c +++ b/src/wim.c @@ -70,8 +70,8 @@ new_wim_struct(void) if (wim) { wim->in_fd.fd = -1; wim->out_fd.fd = -1; + INIT_LIST_HEAD(&wim->subwims); } - INIT_LIST_HEAD(&wim->subwims); return wim; } @@ -420,7 +420,7 @@ begin_read(WIMStruct *wim, const void *wim_filename_or_fd, * 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) { @@ -775,6 +775,7 @@ wimlib_free(WIMStruct *wim) if (filedes_valid(&wim->out_fd)) filedes_close(&wim->out_fd); + wimlib_lzx_free_context(wim->lzx_context); free_lookup_table(wim->lookup_table);