[Commits] [SCM] claws branch, master, updated. 3.17.8-27-g42570f284

miras at claws-mail.org miras at claws-mail.org
Fri Mar 5 09:25:26 CET 2021


The branch, master has been updated
       via  42570f284bce910152a3f5182aca6f860dd788a0 (commit)
      from  d03db8c67b5765aff7b80b7446ebe74ffc40e782 (commit)

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


- Log -----------------------------------------------------------------
commit 42570f284bce910152a3f5182aca6f860dd788a0
Author: Michael Rasmussen <mir at datanom.net>
Date:   Fri Mar 5 09:24:13 2021 +0100

    Fix bug #4455
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/common/stringtable.c b/src/common/stringtable.c
index e94518175..b0f747ed4 100644
--- a/src/common/stringtable.c
+++ b/src/common/stringtable.c
@@ -64,7 +64,10 @@ StringTable *string_table_new(void)
 	strtable = g_new0(StringTable, 1);
 	cm_return_val_if_fail(strtable != NULL, NULL);
 	strtable->hash_table = g_hash_table_new(g_str_hash, g_str_equal);
-	cm_return_val_if_fail(strtable->hash_table, NULL);
+        if (strtable->hash_table == NULL) {
+                g_free(strtable);
+                return NULL;
+        }
 	return strtable;
 }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list