Fixed a memory leak in prefs_account_generate_msgid().
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 08:56:36 +0000 (10:56 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 08:56:36 +0000 (10:56 +0200)
src/prefs_account.c

index aa4d217..3ea0228 100644 (file)
@@ -5026,6 +5026,7 @@ gchar *prefs_account_generate_msgid(PrefsAccount *account)
        tmbuf = g_date_time_format(now, "%Y%m%d%H%M%S");
        buf = g_strdup_printf("%s.%08x%s",
                        tmbuf, (guint)rand(), addr);
+       g_date_time_unref(now);
        g_free(tmbuf);
        g_free(addr);