[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-286-g3188ba813

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


The branch, gtk3 has been updated
       via  3188ba81356cc381f288fd64e1efa88d261accf9 (commit)
      from  a6e473fd6455d949176495d5370d4858caebeb2e (commit)

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


- Log -----------------------------------------------------------------
commit 3188ba81356cc381f288fd64e1efa88d261accf9
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 efb15a882..11072c75e 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2368,8 +2368,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);
 
@@ -2429,7 +2427,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