summaryrefslogtreecommitdiff
path: root/gconfig.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-07-30 22:29:21 +0200
committerLinus Nordberg <linus@nordu.net>2017-07-30 22:29:21 +0200
commit27dcf856e91be99dd40aa504a8cf2258b52cf6da (patch)
tree3def6cca830b3d1270dce3c58985b8611ab1aba1 /gconfig.c
parentbf803f4aab7e40c35d197c36651e4cd8097819dd (diff)
Cleanup varargs in error case too.
coverity: 1449517
Diffstat (limited to 'gconfig.c')
-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;