From: Jim Meyering Date: Thu, 6 Nov 2003 09:28:40 +0000 (+0000) Subject: (who): Free `utmp_buf' so there is no confusion about X-Git-Tag: v5.1.0~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac5d4cb7984026ea560cffff68bb089eb78ceddb;p=thirdparty%2Fcoreutils.git (who): Free `utmp_buf' so there is no confusion about whether it's leaked or not. --- diff --git a/src/who.c b/src/who.c index fc46b6fe76..46cb71c9e3 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