mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 22:42:46 +00:00
Free memory for the error messages just in case
This commit is contained in:
@@ -722,6 +722,7 @@ gb_internal void print_all_errors(void) {
|
||||
if (it.str.len-it.pos > 0) {
|
||||
array_add_elems(&prev_ev->msg, it.str.text+it.pos, it.str.len-it.pos);
|
||||
}
|
||||
array_free(&ev.msg);
|
||||
array_ordered_remove(&global_error_collector.error_values, i);
|
||||
} else {
|
||||
prev_ev = &ev;
|
||||
|
||||
Reference in New Issue
Block a user