talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6fafdc6dc6c7d084f2581c6c2575d25fa51a7926
parent c0159751c31bf83511c1600f759e26648fbec670
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 12 Jul 2017 10:56:36 +0200

Fixed a memory leak in prefs_account_generate_msgid().

Diffstat:
Msrc/prefs_account.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -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);