summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-07-30 22:29:21 +0200
committerLinus Nordberg <linus@nordu.net>2017-08-01 18:19:13 +0200
commit91419d6d6622cb0b9ad09506273c091975ede9dd (patch)
tree0220a827af41cc2ca86d8aa2c44c3cba8531cd05
parentdf6a455f3c11625320dd831b1e799cd0a5b28a21 (diff)
Cleanup varargs in error case too.
coverity: 1449517
-rw-r--r--gconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gconfig.c b/gconfig.c
index c1add5b..6a5d26b 100644
--- a/gconfig.c
+++ b/gconfig.c
@@ -536,6 +536,7 @@ int getgenericconfig(struct gconffile **cf, char *block, ...) {
errparam:
debug(DBG_ERR, "getgenericconfig: internal parameter error");
errexit:
+ va_end(ap);
free(opt);
free(val);
return 0;