[Commits] [SCM] claws branch, vfolder, updated. 3.10.1-125-gbb3931b

miras at claws-mail.org miras at claws-mail.org
Sat Jul 26 12:27:27 CEST 2014


The branch, vfolder has been updated
       via  bb3931b147e8f77cb4b35a79efcb734ed2b8cf69 (commit)
      from  e3353a86f3df830b46ec3dc358c510111558c8a6 (commit)

Summary of changes:
 src/plugins/vfolder/vfolder.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit bb3931b147e8f77cb4b35a79efcb734ed2b8cf69
Author: Michael Rasmussen <mir at datanom.net>
Date:   Sat Jul 26 12:27:21 2014 +0200

    fix possible memory leak

diff --git a/src/plugins/vfolder/vfolder.c b/src/plugins/vfolder/vfolder.c
index 5782a03..214ec30 100644
--- a/src/plugins/vfolder/vfolder.c
+++ b/src/plugins/vfolder/vfolder.c
@@ -876,7 +876,7 @@ gboolean vfolder_msgvault_serialize(VFolderItem* vitem, GKeyFile* config) {
 	// Save each key / value pair to file
 	while (g_hash_table_iter_next (&iter, &key, &value)) {
 		gchar* k = itos(GPOINTER_TO_INT(key));
-		g_key_file_set_integer(config, MSGVAULT_GROUP, g_strdup(k), GPOINTER_TO_INT(value));
+		g_key_file_set_integer(config, MSGVAULT_GROUP, k, GPOINTER_TO_INT(value));
 		debug_print("Vault to config: src->%s dest->%d\n", k, GPOINTER_TO_INT(value));
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list