From ce3b99f5771809f38119e9449099bdb1b0768b8f Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 23 Sep 2013 01:37:57 +0100 Subject: [PATCH] Fixed memory leak in groupchat logging issue #226 --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 5a278872..4442dcfd 100644 --- a/src/log.c +++ b/src/log.c @@ -486,6 +486,7 @@ _get_groupchat_log_filename(const char * const room, const char * const login, gchar *date = g_date_time_format(dt, "/%Y_%m_%d.log"); g_string_append(log_file, date); + g_free(date); char *result = strdup(log_file->str); g_string_free(log_file, TRUE);