wimlib_assert(lte != NULL);
wimlib_assert(lte->refcnt != 0);
if (--lte->refcnt == 0) {
- if (!lte->unhashed)
+ if (lte->unhashed)
+ list_del(<e->unhashed_list);
+ else
lookup_table_unlink(table, lte);
#ifdef WITH_FUSE
if (lte->num_opened_fds == 0)
int
write_lookup_table_from_stream_list(struct list_head *stream_list,
- filedes_t out_fd,
+ int out_fd,
struct resource_entry *out_res_entry)
{
int ret;