aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2005-11-18 12:09:05 +0000
committerQball Cow <qball@qballcow.nl>2005-11-18 12:09:05 +0000
commit4b00c62587dbe0ce131992dcd574ffe323cffa5c (patch)
tree231924d4c2fb4eb916c3a02ed1fc505e42081e58 /src/conf.c
parent32e5f4ca2b43c310ff6639320dec2dd52f159f50 (diff)
downloadmpd-4b00c62587dbe0ce131992dcd574ffe323cffa5c.tar.gz
mpd-4b00c62587dbe0ce131992dcd574ffe323cffa5c.tar.xz
mpd-4b00c62587dbe0ce131992dcd574ffe323cffa5c.zip
DJWLindenaar's fix race condition and some memory leaks patch
git-svn-id: https://svn.musicpd.org/mpd/trunk@3681 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 9675e97d3..53c2370f3 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -112,6 +112,10 @@ void registerConfigParam(char * name, int repeatable, int block) {
insertInList(configEntriesList, name, entry);
}
+void finishConf() {
+ freeList(configEntriesList);
+}
+
void initConf() {
configEntriesList = makeList((ListFreeDataFunc *)freeConfigEntry, 1);
@@ -295,6 +299,7 @@ void readConf(char * file) {
freeArgArray(array, numberOfArgs);
}
+ fclose(fp);
}
ConfigParam * getNextConfigParam(char * name, ConfigParam * last) {