free_inode(): Fix deletion of inode from list
authorEric Biggers <ebiggers3@gmail.com>
Wed, 19 Dec 2012 03:15:40 +0000 (21:15 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 19 Dec 2012 03:15:40 +0000 (21:15 -0600)
src/dentry.c

index e7d34f5d08ed9c968225baa3e3f03f395c505df6..978a825f25ec417342fff795ff9f2b68947b3e21 100644 (file)
@@ -895,7 +895,7 @@ void free_inode(struct inode *inode)
                wimlib_assert(inode->num_opened_fds == 0);
                FREE(inode->fds);
                pthread_mutex_destroy(&inode->i_mutex);
-               if (inode->hlist.next)
+               if (inode->hlist.pprev)
                        hlist_del(&inode->hlist);
        #endif
                FREE(inode->extracted_file);