From 8f01879c5629bd714dfeec968337cfcd4dbe6a87 Mon Sep 17 00:00:00 2001 From: Pavel TvrdĂ­k Date: Tue, 29 Mar 2016 10:37:31 +0200 Subject: cppcheck: fix va_end() functions --- conf/conf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'conf/conf.c') diff --git a/conf/conf.c b/conf/conf.c index 825a8e9f..efaeedeb 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -512,6 +512,7 @@ cf_error(char *msg, ...) va_start(args, msg); if (bvsnprintf(buf, sizeof(buf), msg, args) < 0) strcpy(buf, ""); + va_end(args); new_config->err_msg = cfg_strdup(buf); new_config->err_lino = ifs->lino; new_config->err_file_name = ifs->file_name; -- cgit v1.2.3