From b47bf27f4b3205ec92bd08a918143d1fc467f32a Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sat, 3 Jan 2026 02:10:00 -0500 Subject: free history in txt_free() --- txt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/txt.c b/txt.c index e5fc878..f0f4aaf 100644 --- a/txt.c +++ b/txt.c @@ -265,9 +265,10 @@ int txt_save(Txt *t, const char *path) { } void txt_free(Txt *t) { - for (u32 i = 0; i < COUNTOF(t->buf); i++) { + for (u32 i = 0; i < COUNTOF(t->buf); i++) free(t->buf[i].s); - } + for (u32 i = 0; i < t->hist.n; i++) + free(t->hist.v[i].v); free(t->ptbl.v); } -- cgit v1.2.3