diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-16 20:44:34 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-16 20:44:34 +0000 |
commit | ed2fcc6f9aa466b2e026af88fd3bd712e007da25 (patch) | |
tree | 52521d79694e201a65cfe36ac5bb716e8ec35599 /src/who.c | |
parent | 82a15eefa33f77728ab11f545fc95889a184873b (diff) | |
download | coreutils-ed2fcc6f9aa466b2e026af88fd3bd712e007da25.tar.xz |
Fix memory leak.
Diffstat (limited to 'src/who.c')
-rw-r--r-- | src/who.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -421,6 +421,9 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime) } sprintf (hoststr, "(%s)", host); } + + if (host != ut_host) + free (host); } else { |