Skip to content
Snippets Groups Projects
Commit 309a9bf3 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

server: Make sure we don't get into an infinite loop freeing inodes.

parent 4241adbf
No related branches found
No related tags found
No related merge requests found
......@@ -492,10 +492,10 @@ static void free_inode( struct inode *inode )
if (!subtree && !inode->parent)
{
struct list *head;
while ( (head = list_head(&inode->children)) )
struct inode *tmp, *next;
LIST_FOR_EACH_ENTRY_SAFE( tmp, next, &inode->children,
struct inode, ch_entry )
{
struct inode *tmp = LIST_ENTRY( head, struct inode, ch_entry );
assert( tmp != inode );
assert( tmp->parent == inode );
free_inode( tmp );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment