about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-09-23 01:37:57 +0100
committerJames Booth <boothj5@gmail.com>2013-09-23 01:37:57 +0100
commitce3b99f5771809f38119e9449099bdb1b0768b8f (patch)
tree3ce957ce1820b524b95139b438f33ca1dffb8c2c /src
parent70452c119453f491be537aec214ae76449d8ace8 (diff)
downloadprofani-tty-ce3b99f5771809f38119e9449099bdb1b0768b8f.tar.gz
Fixed memory leak in groupchat logging
issue #226
Diffstat (limited to 'src')
-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);