diff --git a/sesman/sesexec/sessionrecord.c b/sesman/sesexec/sessionrecord.c index 4336994f..0402ad72 100644 --- a/sesman/sesexec/sessionrecord.c +++ b/sesman/sesexec/sessionrecord.c @@ -77,6 +77,7 @@ add_xtmp_entry(int pid, const char *line, const char *user, const char *rhostnam log_message(LOG_LEVEL_DEBUG, "HAVE_UTMP_H"); updwtmp("/var/log/wtmp", &ut); #endif + g_free(hostname); return 0; }