summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-21 19:15:30 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-21 19:15:30 +0000
commit53f77f22a039db1d4c881fd4179c98debcd40243 (patch)
treebece5d7785153f933d89d5c8239447f9afde2ee2 /usr.bin/finger
parent34da792643dd7a35711b8f459a0df8c2c11a3499 (diff)
downloadFreeBSD-src-53f77f22a039db1d4c881fd4179c98debcd40243.zip
FreeBSD-src-53f77f22a039db1d4c881fd4179c98debcd40243.tar.gz
Plug a memory leak.
PR: bin/141836 Submitted by: Henning Petersen <henning.petersen at t-online.de> MFC after: 2 weeks
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/finger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index b278752..944415e 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -373,6 +373,7 @@ net: for (p = nargv; *p;) {
printf("\n");
}
+ free(used);
if (entries == 0)
return;
OpenPOWER on IntegriCloud