From 432bbca41b5fa6fd86845d55a3fff5536360b1b0 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 7 Oct 2003 19:48:08 +0000 Subject: missing free(). Andrey Matveev via deraadt@. ok deraadt@ --- usr.bin/netstat/route.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 30a63053806..f9af35199ae 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.59 2003/10/04 23:15:06 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.60 2003/10/07 19:48:07 tedu Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else -static char *rcsid = "$OpenBSD: route.c,v 1.59 2003/10/04 23:15:06 deraadt Exp $"; +static char *rcsid = "$OpenBSD: route.c,v 1.60 2003/10/07 19:48:07 tedu Exp $"; #endif #endif /* not lint */ @@ -405,6 +405,7 @@ ntreestuff(void) rtm = (struct rt_msghdr *)next; np_rtentry(rtm); } + free(buf); } static void -- cgit v1.2.3