commit 0630129bc9f4bb740867699fea56e795ae887e78
parent 93c1503de4633bf15b730ebfa44a958e57649a4f
Author: Colin Leroy <colin@colino.net>
Date: Mon, 24 May 2021 10:31:44 +0200
Fix possible double free
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/summaryview.c b/src/summaryview.c
@@ -5037,10 +5037,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);