Module Name: src Committed By: msaitoh Date: Fri Dec 14 08:15:44 UTC 2012
Modified Files: src/usr.bin/netstat: bpf.c Log Message: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 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.11 --- src/usr.bin/netstat/bpf.c:1.10 Mon Dec 13 21:15:30 2010 +++ src/usr.bin/netstat/bpf.c Fri Dec 14 08:15:44 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: bpf.c,v 1.10 2010/12/13 21:15:30 pooka Exp $ */ +/* $NetBSD: bpf.c,v 1.11 2012/12/14 08:15:44 msaitoh 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");