talons

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

commit e389d0d172652d1702a05a058165756253635237
parent b5ccfbc46483d8de5dafa480c2002f515bbaf427
Author: wwp <subscript@free.fr>
Date:   Thu, 30 Sep 2021 12:14:54 +0200

Fix CID 1491313: resource leak.

Diffstat:
Msrc/main.c | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -379,12 +379,15 @@ static gboolean migrate_old_config(const gchar *old_cfg_dir, const gchar *new_cf { gchar *message = g_strdup_printf(_("Configuration for %s found.\n" "Do you want to migrate this configuration?"), oldversion); - gchar *message2 = g_strdup_printf(_("\n\nYour Sylpheed filtering rules can be converted by a\n" - "script available at %s."), TOOLS_URI); - if (!strcmp(oldversion, "Sylpheed")) - message = g_strconcat(message, message2, NULL); - g_free(message2); + if (!strcmp(oldversion, "Sylpheed")) { + gchar *message2 = g_strdup_printf(_("\n\nYour Sylpheed filtering rules can be converted by a\n" + "script available at %s."), TOOLS_URI); + gchar *tmp = g_strconcat(message, message2, NULL); + g_free(message2); + g_free(message); + message = tmp; + } gint r = 0; GtkWidget *window = NULL;