[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-239-g975843601

wwp at claws-mail.org wwp at claws-mail.org
Mon Sep 27 20:34:48 CEST 2021


The branch, gtk3 has been updated
       via  9758436014f630cd98d77128249a88fc9743e037 (commit)
      from  3e0a4c09523ad7476661b7c44a2e0d4bc53a4049 (commit)

Summary of changes:
 src/gtk/spell_entry.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 9758436014f630cd98d77128249a88fc9743e037
Author: wwp <subscript at free.fr>
Date:   Mon Sep 27 20:34:23 2021 +0200

    Fix CIS 1491270: resource leak.

diff --git a/src/gtk/spell_entry.c b/src/gtk/spell_entry.c
index b6f073372..8f677e80b 100644
--- a/src/gtk/spell_entry.c
+++ b/src/gtk/spell_entry.c
@@ -252,8 +252,11 @@ static gboolean word_misspelled(ClawsSpellEntry *entry, int start, int end)
 	gboolean ret;
 
 	word = get_word(entry, start, end);
-	if (word == NULL || g_unichar_isdigit(word[0]))
+	if (word == NULL || g_unichar_isdigit(word[0])) {
+		if (word)
+			g_free(word);
 		return FALSE;
+	}
 		
 	ret = gtkaspell_misspelled_test(entry->gtkaspell, word);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list