Module Name: src Committed By: bouyer Date: Sun Jan 13 16:36:58 UTC 2013
Modified Files: src/usr.bin/netstat [netbsd-5]: bpf.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1833): usr.bin/netstat/bpf.c: revision 1.11 Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.8.6.1 src/usr.bin/netstat/bpf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/netstat/bpf.c diff -u src/usr.bin/netstat/bpf.c:1.8 src/usr.bin/netstat/bpf.c:1.8.6.1 --- src/usr.bin/netstat/bpf.c:1.8 Mon Apr 28 20:24:14 2008 +++ src/usr.bin/netstat/bpf.c Sun Jan 13 16:36:58 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: bpf.c,v 1.8 2008/04/28 20:24:14 martin Exp $ */ +/* $NetBSD: bpf.c,v 1.8.6.1 2013/01/13 16:36:58 bouyer Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -165,6 +165,7 @@ bpf_dump(char *interface) printf("%s\n", p.p_comm); #undef BPFEXT } + free(v); } else { /* XXX */ errx(1, "bpf_dump not implemented using kvm");