about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/log.c1
1 files changed, 1 insertions, 0 deletions
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);