From 84d11c4f69b6e0c0accd27caa01cdb66bf2dcb16 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Mon, 6 Jan 2025 16:36:48 +0300 Subject: [PATCH] Fix missing calls to va_end in libunicode --- libunicode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libunicode.c b/libunicode.c index e68b0ca..e880dad 100644 --- a/libunicode.c +++ b/libunicode.c @@ -1542,11 +1542,13 @@ static int unicode_prop_ops(CharRange *cr, ...) } } done: + va_end(ap); assert(stack_len == 1); ret = cr_copy(cr, &stack[0]); cr_free(&stack[0]); return ret; fail: + va_end(ap); for(i = 0; i < stack_len; i++) cr_free(&stack[i]); return -1;