summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/bpf.c
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-09-07 19:28:01 +0000
committercsjp <csjp@FreeBSD.org>2005-09-07 19:28:01 +0000
commit092230593a108a7a2dbb3abc53892788ee312f9f (patch)
treecf23dfe69b27a14fadb27d304e14f90edc652d6c /usr.bin/netstat/bpf.c
parentaab5eef5156f197a11ab4c06c9b86a54fcc7f95f (diff)
downloadFreeBSD-src-092230593a108a7a2dbb3abc53892788ee312f9f.zip
FreeBSD-src-092230593a108a7a2dbb3abc53892788ee312f9f.tar.gz
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.
Diffstat (limited to 'usr.bin/netstat/bpf.c')
-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 a3ac26c..e046ee5 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);
}
OpenPOWER on IntegriCloud