]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.c
Update bug fixes
[wimlib] / src / lookup_table.c
index e2ca5920745f84b733bdfb794928c4f5a516e821..e2ce02e7bc4ea29b3bc4908df3a20e1eeca8fec7 100644 (file)
@@ -240,7 +240,9 @@ lte_decrement_refcnt(struct wim_lookup_table_entry *lte,
        wimlib_assert(lte != NULL);
        wimlib_assert(lte->refcnt != 0);
        if (--lte->refcnt == 0) {
-               if (!lte->unhashed)
+               if (lte->unhashed)
+                       list_del(&lte->unhashed_list);
+               else
                        lookup_table_unlink(table, lte);
        #ifdef WITH_FUSE
                if (lte->num_opened_fds == 0)