From 011523ecf7f3fa53566c6f3066772d41c1ba84dc 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(+) (limited to 'gconfig.c') 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; -- cgit v1.1