summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-27 22:11:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-27 22:11:40 +0000
commitd53965e651f0aab441f9859fd1d7cc0e48db8798 (patch)
treedc7a297bfd0e148b91cca886bff5b3903cce852e
parent2135af4c36156d72e0917aabce2e43645ebf933f (diff)
memory leak; andrushock@korovino.net
-rw-r--r--usr.sbin/arp/arp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index bb5f1c28e24..3995658af6b 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.29 2003/06/27 22:11:22 deraadt Exp $ */
+/* $OpenBSD: arp.c,v 1.30 2003/06/27 22:11:39 deraadt Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)arp.c 8.2 (Berkeley) 1/2/94";*/
-static char *rcsid = "$OpenBSD: arp.c,v 1.29 2003/06/27 22:11:22 deraadt Exp $";
+static char *rcsid = "$OpenBSD: arp.c,v 1.30 2003/06/27 22:11:39 deraadt Exp $";
#endif /* not lint */
/*
@@ -447,6 +447,7 @@ search(in_addr_t addr, void (*action)(struct sockaddr_dl *sdl,
}
(*action)(sdl, sin, rtm);
}
+ free(buf);
}
/*