summaryrefslogtreecommitdiff
path: root/conf/conf.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-03-25 14:58:00 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2014-03-25 14:58:00 +0100
commit0c3d9dacafdb807d2101c67610969707353f434a (patch)
tree4abd0f7a4178332150791bda73c5f3185a403dc7 /conf/conf.c
parent4e7c974d22ee5d938d8d8e7018f0a63f609d630b (diff)
Fixes file descriptor leak when parser ends with error.
Thanks to MrBr for the bugreport.
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 67b027ce..a907402d 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -502,6 +502,7 @@ cf_error(char *msg, ...)
new_config->err_msg = cfg_strdup(buf);
new_config->err_lino = ifs->lino;
new_config->err_file_name = ifs->file_name;
+ cf_lex_unwind();
longjmp(conf_jmpbuf, 1);
}