diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 22:38:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 22:38:39 +0200 |
commit | 74b34f7b6115da93a772e3c7c8da2889df4d1d91 (patch) | |
tree | ad87dfd59f97669667c04e780af808be08af2ea9 /src | |
parent | 260e1a9037d53b8accad3c94f27544c78a1a9b27 (diff) | |
download | mpd-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 'src')
-rw-r--r-- | src/directory.c | 2 |
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); } |