summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-06 09:28:40 +0000
committerJim Meyering <jim@meyering.net>2003-11-06 09:28:40 +0000
commitac5d4cb7984026ea560cffff68bb089eb78ceddb (patch)
treed3cb1398adb830e041d0f09823ddd9bd00e33ea3 /src
parenta5aaf05fbfcf36b80e4759ea1f40c37cb1313089 (diff)
downloadcoreutils-ac5d4cb7984026ea560cffff68bb089eb78ceddb.tar.xz
(who): Free `utmp_buf' so there is no confusion about
whether it's leaked or not.
Diffstat (limited to 'src')
-rw-r--r--src/who.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/who.c b/src/who.c
index fc46b6fe7..46cb71c9e 100644
--- a/src/who.c
+++ b/src/who.c
@@ -605,6 +605,8 @@ who (const char *filename)
list_entries_who (n_users, utmp_buf);
else
scan_entries (n_users, utmp_buf);
+
+ free (utmp_buf);
}
void