aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast.c1
1 files changed, 1 insertions, 0 deletions
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);