aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 22:38:39 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 22:38:39 +0200
commit74b34f7b6115da93a772e3c7c8da2889df4d1d91 (patch)
treead87dfd59f97669667c04e780af808be08af2ea9
parent260e1a9037d53b8accad3c94f27544c78a1a9b27 (diff)
downloadmpd-74b34f7b6115da93a772e3c7c8da2889df4d1d91.tar.gz
mpd-74b34f7b6115da93a772e3c7c8da2889df4d1d91.tar.xz
mpd-74b34f7b6115da93a772e3c7c8da2889df4d1d91.zip
directory: fix leak introduced with threaded update
Use freeList() instead of free() to free all elements in the list.
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
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);
}