(who): Free `utmp_buf' so there is no confusion about

whether it's leaked or not.
This commit is contained in:
Jim Meyering
2003-11-06 09:28:40 +00:00
parent a5aaf05fbf
commit ac5d4cb798
+2
View File
@@ -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