diff options
author | David Hill <dhill@cvs.openbsd.org> | 2008-12-24 16:53:23 +0000 |
---|---|---|
committer | David Hill <dhill@cvs.openbsd.org> | 2008-12-24 16:53:23 +0000 |
commit | bc14947bbae1b9761c21acd8fdea70ce8cd028b4 (patch) | |
tree | 921df6f0c04e7d8054a93ac09c23dc751c85e8d0 | |
parent | 261ca79adc4eed000e7c385a1759a9815784a50f (diff) |
Plug a couple of memory leaks noticed by deraadt.
ok otto@
-rw-r--r-- | usr.bin/netstat/if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 29785a2287c..d6df072e899 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.57 2008/03/18 20:03:37 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.58 2008/12/24 16:53:22 dhill Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -172,6 +172,7 @@ intpr(int interval) break; } } + free(buf); } static void @@ -566,4 +567,5 @@ fetchifs(void) ip_cur.ift_dr = 0; /* XXX ifnet.if_snd.ifq_drops */ } + free(buf); } |