From 290ce7d2a9be4b07a6365e85871a6aa4be8009eb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 28 Dec 2017 05:33:44 +0000 Subject: [PATCH] Free data after we're done with it. CID: 271595, 275337, 1368743 --- usr.bin/column/column.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index aa92742a0def..a253d24ca1b3 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -270,7 +270,12 @@ maketbl(void) (void)wprintf(L"%ls%*ls", t->list[coloff], lens[coloff] - t->len[coloff] + 2, L" "); (void)wprintf(L"%ls\n", t->list[coloff]); + free(t->list); + free(t->len); } + free(lens); + free(cols); + free(tbl); } #define DEFNUM 1000