From ac5d4cb7984026ea560cffff68bb089eb78ceddb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 Nov 2003 09:28:40 +0000 Subject: (who): Free `utmp_buf' so there is no confusion about whether it's leaked or not. --- src/who.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf