mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Fix memory leak.
This commit is contained in:
1 parent
82a15eefa3
commit
ed2fcc6f9a
2 files changed
+6
No files matched your search
@@ -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