diff options
| author | christos <christos@NetBSD.org> | 2006-04-30 23:27:15 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-04-30 23:27:15 +0000 |
| commit | 7d7dff85909ff2fcbbb4c7bc202557fce8ffdcfc (patch) | |
| tree | 8bd391b6e30658794352889f8fad5f4d0e5c1012 /usr.bin/tail | |
| parent | 8fc4e510a92bcf4bf960523e2b81321a539a6f14 (diff) | |
Coverity CID 2986: Free lines before returning.
Diffstat (limited to 'usr.bin/tail')
| -rw-r--r-- | usr.bin/tail/read.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c index 22478630745..11c21cfa27b 100644 --- a/usr.bin/tail/read.c +++ b/usr.bin/tail/read.c @@ -1,4 +1,4 @@ -/* $NetBSD: read.c,v 1.11 2006/04/09 19:42:03 christos Exp $ */ +/* $NetBSD: read.c,v 1.12 2006/04/30 23:27:15 christos Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: read.c,v 1.11 2006/04/09 19:42:03 christos Exp $"); +__RCSID("$NetBSD: read.c,v 1.12 2006/04/30 23:27:15 christos Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -205,5 +205,6 @@ lines(FILE *fp, __off_t off) for (cnt = 0; cnt < recno; ++cnt) WR(lines[cnt].l, lines[cnt].len); } + free(lines); return (0); } |
