1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-06 20:03:46 -04:00

Fixed memory leak in groupchat logging

issue #226
This commit is contained in:
James Booth 2013-09-23 01:37:57 +01:00
parent 70452c1194
commit ce3b99f577

View File

@ -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);