From 91419d6d6622cb0b9ad09506273c091975ede9dd Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 30 Jul 2017 22:29:21 +0200 Subject: Cleanup varargs in error case too. coverity: 1449517 --- gconfig.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.1