From 58b3989655e159d9f5c69f209c24548ae171569c Mon Sep 17 00:00:00 2001 From: BLINDAUER Emmanuel Date: Sun, 12 Nov 2017 11:58:45 +0100 Subject: [PATCH] don't forget a free use g_* --- sesman/sesexec/sessionrecord.c | 1 + 1 file changed, 1 insertion(+) 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; }