aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
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) {