From b3c06357a53ea35407abdf227f8fbeaaa72d7110 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 28 Jul 2020 17:27:01 +0200 Subject: Add missing va_end --- src/ast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ast.c b/src/ast.c index 297014d..135dc70 100644 --- a/src/ast.c +++ b/src/ast.c @@ -457,6 +457,7 @@ static void compiler_print_error(amal_compiler *compiler, const char *ref, const amal_log_error("Failed to find tokenizer for code reference %p. Is it an invalid reference?", ref ? ref : "(null)"); vfprintf(stderr, fmt, args); fputc('\n', stderr); + va_end(args); return; } tokenizer_print_error_args(tokenizer, tokenizer_get_code_reference_index(tokenizer, ref), fmt, args); -- cgit v1.2.3