diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pinky.c | 3 | ||||
-rw-r--r-- | src/who.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/pinky.c b/src/pinky.c index 2e97fc8a6..6912972fc 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -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 @@ -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 { |