(who): Free `utmp_buf' so there is no confusion about
authorJim Meyering <jim@meyering.net>
Thu, 6 Nov 2003 09:28:40 +0000 (09:28 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 Nov 2003 09:28:40 +0000 (09:28 +0000)
whether it's leaked or not.

src/who.c

index fc46b6fe764784ad839569dfeb4c7f3e914e86c6..46cb71c9e3c6ed20a2900ded54344e5233ede4fb 100644 (file)
--- 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