]> wimlib.net Git - wimlib/blobdiff - src/extract.c
Consolidate `struct lookup_table_entry'
[wimlib] / src / extract.c
index 6e341cc0f396c414992efe0c5e7935750a26cd71..d2f2a3547c1152381f1328e4d1f0189c8e1d691d 100644 (file)
@@ -459,7 +459,7 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image,
                w->lookup_table = joined_tab;
        }
 
-       for_lookup_table_entry(w->lookup_table, lte_free_extracted_file, NULL);
+       for_lookup_table_entry(w->lookup_table, lte_zero_extracted_file, NULL);
 
        if (image == WIM_ALL_IMAGES) {
                flags |= WIMLIB_EXTRACT_FLAG_MULTI_IMAGE;
@@ -472,6 +472,7 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image,
                free_lookup_table(w->lookup_table);
                w->lookup_table = w_tab_save;
        }
+       for_lookup_table_entry(w->lookup_table, lte_free_extracted_file, NULL);
        return ret;
 
 }