directory: fix leak introduced with threaded update
Use freeList() instead of free() to free all elements in the list.
This commit is contained in:

committed by
Max Kellermann

parent
260e1a9037
commit
74b34f7b61
@@ -149,7 +149,7 @@ static void * update_task(void *arg)
|
|||||||
}
|
}
|
||||||
node = node->nextNode;
|
node = node->nextNode;
|
||||||
}
|
}
|
||||||
free(path_list);
|
freeList(path_list);
|
||||||
} else {
|
} else {
|
||||||
ret = updateDirectory(mp3rootDirectory);
|
ret = updateDirectory(mp3rootDirectory);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user