[Commits] [SCM] claws branch, master, updated. 4.2.0-44-gd44c5d96d

mones at claws-mail.org mones at claws-mail.org
Sat Feb 10 19:01:36 UTC 2024


The branch, master has been updated
       via  d44c5d96dc8415c5fa5888bf8490653b85aba1e8 (commit)
      from  6e0856ba50f76742c443fe2e47d802261502306b (commit)

Summary of changes:
 src/common/xml.c | 2 +-
 src/mimeview.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit d44c5d96dc8415c5fa5888bf8490653b85aba1e8
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Feb 10 20:00:52 2024 +0100

    Fix CIDs 1491064 and 1491074
    
    Two instances of 'Use after free (USE_AFTER_FREE)'

diff --git a/src/common/xml.c b/src/common/xml.c
index bb01699d5..8b680edef 100644
--- a/src/common/xml.c
+++ b/src/common/xml.c
@@ -361,8 +361,8 @@ static void xml_pop_tag(XMLFile *file)
 
 	tag = (XMLTag *)file->tag_stack->data;
 
-	xml_free_tag(tag);
 	file->tag_stack = g_list_remove(file->tag_stack, tag);
+	xml_free_tag(tag);
 	file->level--;
 }
 
diff --git a/src/mimeview.c b/src/mimeview.c
index 6c1b853f2..a8de83666 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -597,8 +597,8 @@ void mimeview_destroy(MimeView *mimeview)
 	mimeview_free_mimeinfo(mimeview);
 	gtk_tree_path_free(mimeview->opened);
 	g_free(mimeview->file);
-	g_free(mimeview);
 	mimeviews = g_slist_remove(mimeviews, mimeview);
+	g_free(mimeview);
 }
 
 MimeInfo *mimeview_get_selected_part(MimeView *mimeview)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list