[Commits] [SCM] claws branch, master, updated. 3.18.0-228-g4236b3851

wwp at claws-mail.org wwp at claws-mail.org
Fri Oct 1 08:36:08 CEST 2021


The branch, master has been updated
       via  4236b38514c75284814ae39c85112534292064d6 (commit)
      from  7a307732af407bfdcd37c0fd78bae28327f38eef (commit)

Summary of changes:
 src/compose.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 4236b38514c75284814ae39c85112534292064d6
Author: wwp <subscript at free.fr>
Date:   Fri Oct 1 08:35:29 2021 +0200

    Fix CID 1402307: use after free, and do a proper freeing of struct.

diff --git a/src/compose.c b/src/compose.c
index bd5319b20..e3d55fe57 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2389,8 +2389,6 @@ Compose *compose_reedit(MsgInfo *msginfo, gboolean batch)
 	}
 	if (!account) {
 		account = cur_account;
-		if (manual_headers)
-			g_free(manual_headers);
 	}
 	cm_return_val_if_fail(account != NULL, NULL);
 
@@ -2450,7 +2448,7 @@ Compose *compose_reedit(MsgInfo *msginfo, gboolean batch)
 		compose->updating = FALSE;
 		compose_destroy(compose);
 		if (manual_headers)
-			g_free(manual_headers);
+			procheader_entries_free(manual_headers);
 		return NULL;
 	}
 	compose_reedit_set_entry(compose, msginfo);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list