diff options
| author | gingerBill <bill@gingerbill.org> | 2024-05-07 11:21:12 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-05-07 11:21:12 +0100 |
| commit | 1818df786dbd8595bb58719ce849350b354c60a7 (patch) | |
| tree | b06dc8b1ced816eb38dd1e9ccd9b75d636673a76 /src | |
| parent | b23f1dd5ffd0f1d3e74dc48b7f4b13d441cea3ff (diff) | |
Free memory for the error messages just in case
Diffstat (limited to 'src')
| -rw-r--r-- | src/error.cpp | 1 |
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; |