mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-02 14:00:19 -04:00
Fix memory leak.
This commit is contained in:
@@ -310,6 +310,9 @@ print_entry (const STRUCT_UTMP *utmp_ent)
|
||||
printf (" %s:%s", host, display);
|
||||
else
|
||||
printf (" %s", host);
|
||||
|
||||
if (host != ut_host)
|
||||
free (host);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user