diff options
author | Qball Cow <qball@qballcow.nl> | 2005-11-18 12:09:05 +0000 |
---|---|---|
committer | Qball Cow <qball@qballcow.nl> | 2005-11-18 12:09:05 +0000 |
commit | 4b00c62587dbe0ce131992dcd574ffe323cffa5c (patch) | |
tree | 231924d4c2fb4eb916c3a02ed1fc505e42081e58 /src/conf.c | |
parent | 32e5f4ca2b43c310ff6639320dec2dd52f159f50 (diff) | |
download | mpd-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.c | 5 |
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) { |