Date: Thu, 28 Dec 2017 05:33:44 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327268 - head/usr.bin/column Message-ID: <201712280533.vBS5XiWm024366@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712280533.vBS5XiWm024366>