From f6090c7e17b5a7801a32695b6b0b2e6959386881 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Nov 2023 16:16:37 +0100 Subject: [PATCH] add missing call to `va_end()` for copied `va_list` The man page stdarg(3) states that each invocation of `va_copy()` must be matched by a corresponding invocation of `va_end()` in the same function. Signed-off-by: Max Signed-off-by: Lukas Fleischer --- src/strings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/strings.c b/src/strings.c index 45c9310f..ed90bc73 100644 --- a/src/strings.c +++ b/src/strings.c @@ -85,6 +85,7 @@ int string_vcatf(struct string *sb, const char *format, va_list ap) ap2); } sb->len += n; + va_end(ap2); return n; }