[Commits] [SCM] claws branch, master, updated. 3.18.0-181-ga70d45847
wwp at claws-mail.org
wwp at claws-mail.org
Mon Sep 27 20:34:44 CEST 2021
The branch, master has been updated
via a70d4584780ac40c71b5745b72c8a6e9d6aa964e (commit)
from f25ae8ceb2f41d00aef4ae94b5e6cc2b3cb97f36 (commit)
Summary of changes:
src/gtk/spell_entry.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit a70d4584780ac40c71b5745b72c8a6e9d6aa964e
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 639dedda3..7cb344b00 100644
--- a/src/gtk/spell_entry.c
+++ b/src/gtk/spell_entry.c
@@ -253,8 +253,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