Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/usr.bin/column Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/bbf51fe04bf2
branches:  netbsd-3-0
changeset: 579269:bbf51fe04bf2
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Aug 06 11:47:14 2006 +0000

description:
Pull up following revision(s) (requested by daniel in ticket #1449):
        usr.bin/column/column.c: revision 1.14
Coverity CID 1596: Plug memory leak.

diffstat:

 usr.bin/column/column.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 20b34ee45a2a -r bbf51fe04bf2 usr.bin/column/column.c
--- a/usr.bin/column/column.c   Sun Aug 06 11:45:24 2006 +0000
+++ b/usr.bin/column/column.c   Sun Aug 06 11:47:14 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: column.c,v 1.12.4.1 2006/08/06 11:45:24 tron Exp $     */
+/*     $NetBSD: column.c,v 1.12.4.2 2006/08/06 11:47:14 tron Exp $     */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)column.c   8.4 (Berkeley) 5/4/95";
 #endif
-__RCSID("$NetBSD: column.c,v 1.12.4.1 2006/08/06 11:45:24 tron Exp $");
+__RCSID("$NetBSD: column.c,v 1.12.4.2 2006/08/06 11:47:14 tron Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -251,6 +251,9 @@
                            lens[coloff] - t->len[coloff] + 2, " ");
                (void)printf("%s\n", t->list[coloff]);
        }
+       free(tbl);
+       free(cols);
+       free(lens);
 }
 
 #define        DEFNUM          1000



Home | Main Index | Thread Index | Old Index