From c5e22666b0b70354fe823cc9851724f69e99355e Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 9 Apr 2006 19:51:23 +0000 Subject: [PATCH] Coverity CID 1596: Plug memory leak. --- usr.bin/column/column.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index 9ded4e290cc4..d15181cf88d0 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -1,4 +1,4 @@ -/* $NetBSD: column.c,v 1.13 2005/12/17 18:10:55 christos Exp $ */ +/* $NetBSD: column.c,v 1.14 2006/04/09 19:51:23 christos Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)column.c 8.4 (Berkeley) 5/4/95"; #endif -__RCSID("$NetBSD: column.c,v 1.13 2005/12/17 18:10:55 christos Exp $"); +__RCSID("$NetBSD: column.c,v 1.14 2006/04/09 19:51:23 christos Exp $"); #endif /* not lint */ #include @@ -251,6 +251,9 @@ maketbl(void) lens[coloff] - t->len[coloff] + 2, " "); (void)printf("%s\n", t->list[coloff]); } + free(tbl); + free(cols); + free(lens); } #define DEFNUM 1000