talons

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

commit 237fbc4127b691d343cdb43fe71a2a0896dc693e
parent 9dee8a09a7cda3f07ebdeefe8161f113dc7a2f42
Author: Colin Leroy <colin@colino.net>
Date:   Mon, 24 May 2021 10:31:44 +0200

Fix possible double free

Diffstat:
Msrc/summaryview.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/summaryview.c b/src/summaryview.c @@ -5066,10 +5066,11 @@ void summary_save_as(SummaryView *summaryview) msginfo = gtk_cmctree_node_get_row_data(ctree, GTK_CMCTREE_NODE(item->data)); if (!msginfo) break; src = procmsg_get_message_file(msginfo); - if (append_file(src, dest, TRUE) < 0) + if (append_file(src, dest, TRUE) < 0) { alertpanel_error(_("Couldn't save the file '%s'."), tmp); + } + g_free(src); } - g_free(src); } filedir = g_path_get_dirname(dest);