svn commit: r327268 - head/usr.bin/column
Warner Losh
imp at FreeBSD.org
Thu Dec 28 05:33:47 UTC 2017
Author: imp
Date: Thu Dec 28 05:33:44 2017
New Revision: 327268
URL: https://svnweb.freebsd.org/changeset/base/327268
Log:
Free data after we're done with it.
CID: 271595, 275337, 1368743
Modified:
head/usr.bin/column/column.c
Modified: head/usr.bin/column/column.c
==============================================================================
--- head/usr.bin/column/column.c Thu Dec 28 05:33:39 2017 (r327267)
+++ head/usr.bin/column/column.c Thu Dec 28 05:33:44 2017 (r327268)
@@ -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
More information about the svn-src-all
mailing list