summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-01 07:54:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-01 07:54:27 +0000
commit8336e39bebe6e66b237516b82a6275c979c5645b (patch)
tree5847d53f6667893136f5cd6ba2b759bc2e36b309 /sbin/ifconfig/ifconfig.c
parent85a905379a43e1c49262971dca497c903e15ce6d (diff)
missing freeaddrinfo(); maticd@gmail.com
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 468fa41b521..a7d7228fa8c 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.151 2005/10/10 10:28:19 henning Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.152 2005/11/01 07:54:26 deraadt Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -3034,6 +3034,8 @@ setpfsync_syncpeer(const char *val, int d)
if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1)
err(1, "SIOCSETPFSYNC");
+
+ freeaddrinfo(peerres);
}
/* ARGSUSED */