aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 77ef13ba4..9c08bb3da 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -186,11 +186,15 @@ static ConfigParam * readConfigBlock(FILE * fp, int * count, char * string) {
argsMinusComment = i;
- if(0 == argsMinusComment) continue;
+ if(0 == argsMinusComment) {
+ freeArgArray(array, numberOfArgs);
+ continue;
+ }
if(1 == argsMinusComment &&
0 == strcmp(array[0], CONF_BLOCK_END))
{
+ freeArgArray(array, numberOfArgs);
break;
}
@@ -248,7 +252,10 @@ void readConf(char * file) {
argsMinusComment = i;
- if(0 == argsMinusComment) continue;
+ if(0 == argsMinusComment) {
+ freeArgArray(array, numberOfArgs);
+ continue;
+ }
if(2 != argsMinusComment) {
ERROR("improperly formatted config file at line %i:"