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:25:36 +0200
commit011523ecf7f3fa53566c6f3066772d41c1ba84dc (patch)
treeafd58c041fbc7dd4a9044911314fd59228666a67
parent9179e9fa0120beec962d83a0b736953d313805ca (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 b7107aa..38a33ff 100644
--- a/gconfig.c
+++ b/gconfig.c
@@ -541,6 +541,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;