From 38fce1480c94351e54ae43a4c18e223456f780d6 Mon Sep 17 00:00:00 2001 From: Pierre Blanchard Date: Tue, 15 Oct 2024 15:51:51 +0000 Subject: [PATCH] Fix errors reported by cppcheck in src/quad/sleefsimdqp.c Error: va_list 'ap2' was opened but not closed by va_end(). --- src/quad/sleefsimdqp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quad/sleefsimdqp.c b/src/quad/sleefsimdqp.c index fb295046..182a1421 100644 --- a/src/quad/sleefsimdqp.c +++ b/src/quad/sleefsimdqp.c @@ -3995,6 +3995,8 @@ static int xvprintf(size_t (*consumer)(const char *ptr, size_t size, void *arg), outlen += (*consumer)(xbuf, strlen(xbuf), arg); } + va_end(ap2); + fmt++; }