aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian S.J. Peron <csjp@FreeBSD.org>2005-09-07 19:28:01 +0000
committerChristian S.J. Peron <csjp@FreeBSD.org>2005-09-07 19:28:01 +0000
commit48d91509de69d217ea2ea05cfe49f08def60b3e0 (patch)
treecf23dfe69b27a14fadb27d304e14f90edc652d6c
parent5dbd2da1539dc95f55744078b622f55e79919ce2 (diff)
downloadsrc-48d91509de69d217ea2ea05cfe49f08def60b3e0.tar.gz
src-48d91509de69d217ea2ea05cfe49f08def60b3e0.zip
Free the bpf descriptor array after we are done with it. This probably isnt
that critical as the program exits after this point anyway, but this may not always be the case.
Notes
Notes: svn path=/head/; revision=149867
-rw-r--r--usr.bin/netstat/bpf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/bpf.c b/usr.bin/netstat/bpf.c
index a3ac26c27386..e046ee57a35e 100644
--- a/usr.bin/netstat/bpf.c
+++ b/usr.bin/netstat/bpf.c
@@ -116,4 +116,5 @@ bpf_stats(char *interface)
d->bd_slen, d->bd_hlen, pname);
free(pname);
}
+ free(bd);
}