aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-28 17:27:01 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-28 17:27:01 +0200
commitb3c06357a53ea35407abdf227f8fbeaaa72d7110 (patch)
tree16abfffa7e32ba5ad85c4a9f8fa411c67228795c
parente5821148c6b469a48f536b4cd18f06fd5be20e1f (diff)
Add missing va_end
-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);