diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |