diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-02-16 05:26:59 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-02-16 05:26:59 +0000 |
commit | 3721014240985d3a15c353e9aff539f36953c3e5 (patch) | |
tree | 3d08919811150a2a631d97154ddfe5b17bafe4b3 /usr.sbin/ifstated/ifstated.c | |
parent | 3269941684fcaec2f07f118b9663454dd4e33a4c (diff) |
freeifaddrs() data from getifaddrs()
from Patrick Latifi <pat@eyeo.org>
Diffstat (limited to 'usr.sbin/ifstated/ifstated.c')
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index 06949c514d7..999a7f7a136 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.10 2004/02/15 00:56:01 mcbride Exp $ */ +/* $OpenBSD: ifstated.c,v 1.11 2004/02/16 05:26:58 mcbride Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -575,6 +575,7 @@ fetch_state(void) scan_ifstate(if_nametoindex(ifa->ifa_name), ifrdat.ifi_link_state, conf->curstate); } + freeifaddrs(ifap); close(sock); } |