diff options
| author | WormHeamer | 2026-01-03 02:10:00 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-03 02:10:00 -0500 |
| commit | b47bf27f4b3205ec92bd08a918143d1fc467f32a (patch) | |
| tree | c837795df72925be962aa93a55992093f2d82c2b | |
| parent | 09371385225debb9fee798059515c3a665f45fa1 (diff) | |
free history in txt_free()
| -rw-r--r-- | txt.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |
