From 48d91509de69d217ea2ea05cfe49f08def60b3e0 Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Wed, 7 Sep 2005 19:28:01 +0000 Subject: [PATCH] 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. --- usr.bin/netstat/bpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/netstat/bpf.c b/usr.bin/netstat/bpf.c index a3ac26c2738..e046ee57a35 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); }