From d24d7c4dabe2dea576f21dda985d096d0d962c42 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 28 Dec 2013 20:40:59 -0600 Subject: [PATCH] wimlib_extract_flags(): Free memory used in linked extraction mode --- src/extract.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.43.0