From: Eric Biggers Date: Sun, 29 Dec 2013 02:40:59 +0000 (-0600) Subject: wimlib_extract_flags(): Free memory used in linked extraction mode X-Git-Tag: v1.6.0~57 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d24d7c4dabe2dea576f21dda985d096d0d962c42 wimlib_extract_flags(): Free memory used in linked extraction mode --- diff --git a/src/extract.c b/src/extract.c index 5c2f0f71..44076db0 100644 --- a/src/extract.c +++ b/src/extract.c @@ -3246,6 +3246,14 @@ wimlib_extract_paths(WIMStruct *wim, ~WIMLIB_EXTRACT_FLAG_GLOB_PATHS) | WIMLIB_EXTRACT_FLAG_PATHMODE), progress_func); + + if (extract_flags & (WIMLIB_EXTRACT_FLAG_SYMLINK | + WIMLIB_EXTRACT_FLAG_HARDLINK)) + { + for_lookup_table_entry(wim->lookup_table, + lte_free_extracted_file, + NULL); + } out_free_trees: FREE(trees); return ret;