aboutsummaryrefslogtreecommitdiff
path: root/src/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.cpp')
-rw-r--r--src/error.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.cpp b/src/error.cpp
index 08675c4be..1877a672b 100644
--- a/src/error.cpp
+++ b/src/error.cpp
@@ -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;