summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-12 15:33:21 +0000
committernicm <nicm@openbsd.org>2009-11-12 15:33:21 +0000
commitc52f7d14e1832a803484032c048485027bb39cc5 (patch)
tree45cd627f82f5858f1a30c074376b918165733f45
parentmemory leak found by parfait; ok jsg (diff)
downloadwireguard-openbsd-c52f7d14e1832a803484032c048485027bb39cc5.tar.xz
wireguard-openbsd-c52f7d14e1832a803484032c048485027bb39cc5.zip
Fix memory leak found by parfait.
ok deraadt
-rw-r--r--usr.bin/finger/finger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index b7e4dcde466..8c683ed5bac 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: finger.c,v 1.17 2009/10/27 23:59:38 deraadt Exp $ */
+/* $OpenBSD: finger.c,v 1.18 2009/11/12 15:33:21 nicm Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -245,6 +245,7 @@ net: for (pn = nethead; pn; pn = pn->next) {
putchar('\n');
}
+ free(used);
if (entries == 0)
return;