aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 01:05:23 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-23 01:05:23 -0700
commit55d3b528163511b3ca9172dabfbb093ea2c8b0ae (patch)
treecc50703f55aa1273e004c026e63252336f9ef1f8 /src/directory.c
parentefefaee1f9535012be2fbfea8f0f870904daad5d (diff)
downloadmpd-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 '')
-rw-r--r--src/directory.c2
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);
}