From 74b34f7b6115da93a772e3c7c8da2889df4d1d91 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 23 Sep 2008 22:38:39 +0200 Subject: directory: fix leak introduced with threaded update Use freeList() instead of free() to free all elements in the list. --- src/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/directory.c b/src/directory.c index 9c8bd23fa..64d55e7ee 100644 --- a/src/directory.c +++ b/src/directory.c @@ -149,7 +149,7 @@ static void * update_task(void *arg) } node = node->nextNode; } - free(path_list); + freeList(path_list); } else { ret = updateDirectory(mp3rootDirectory); } -- cgit v1.2.3