Module Name:    src
Committed By:   snj
Date:           Tue Dec 25 21:07:05 UTC 2012

Modified Files:
        src/usr.bin/netstat [netbsd-6]: bpf.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #763):
        usr.bin/netstat/bpf.c: revision 1.11
Fix memory leak.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.8.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.10 src/usr.bin/netstat/bpf.c:1.10.8.1
--- src/usr.bin/netstat/bpf.c:1.10	Mon Dec 13 21:15:30 2010
+++ src/usr.bin/netstat/bpf.c	Tue Dec 25 21:07:04 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: bpf.c,v 1.10 2010/12/13 21:15:30 pooka Exp $	*/
+/*	$NetBSD: bpf.c,v 1.10.8.1 2012/12/25 21:07:04 snj Exp $	*/
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -167,6 +167,7 @@ bpf_dump(const char *bpfif)
 				printf("%s\n", p.p_comm);
 #undef BPFEXT
 		}
+		free(v);
 	} else {
                 /* XXX */
                 errx(1, "bpf_dump not implemented using kvm");

Reply via email to