diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 01:05:23 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-23 01:05:23 -0700 |
commit | 55d3b528163511b3ca9172dabfbb093ea2c8b0ae (patch) | |
tree | cc50703f55aa1273e004c026e63252336f9ef1f8 /src | |
parent | efefaee1f9535012be2fbfea8f0f870904daad5d (diff) | |
download | mpd-55d3b528163511b3ca9172dabfbb093ea2c8b0ae.tar.gz mpd-55d3b528163511b3ca9172dabfbb093ea2c8b0ae.tar.xz mpd-55d3b528163511b3ca9172dabfbb093ea2c8b0ae.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 e7210816f..626dc7452 100644 --- a/src/directory.c +++ b/src/directory.c @@ -158,7 +158,7 @@ static void * update_task(void *arg) } node = node->nextNode; } - free(path_list); + freeList(path_list); } else { ret = updateDirectory(mp3rootDirectory); } |