[evolution-data-server] Fix memory leak in summary_header_to_db()



commit 2999551cbb78f902cd8321c0c2eb5327474e8a3d
Author: David Woodhouse <David Woodhouse intel com>
Date:   Thu Jul 1 08:59:59 2010 +0100

    Fix memory leak in summary_header_to_db()
    
    ==4945== 9 bytes in 1 blocks are definitely lost in loss record 1,482 of 23,077
    ==4945==    at 0x4A0515D: malloc (vg_replace_malloc.c:195)
    ==4945==    by 0x319A044AE2: g_malloc (gmem.c:132)
    ==4945==    by 0x319A05C3BD: g_strdup (gstrfuncs.c:102)
    ==4945==    by 0x6466990: summary_header_to_db (camel-folder-summary.c:296)
    ==4945==    by 0x12C48A2B: summary_header_to_db (camel-imapx-summary.c:289)
    ==4945==    by 0x6463B69: camel_folder_summary_save_to_db (camel-folder-summary.c:2316)
    ==4945==    by 0x12C507B2: imapx_command_sync_changes_done (camel-imapx-server.c:4227)

 camel/camel-folder-summary.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 1521c8a..615a51a 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -2321,6 +2321,7 @@ camel_folder_summary_save_to_db (CamelFolderSummary *s,
 
 	camel_db_begin_transaction (cdb, ex);
 	ret = camel_db_write_folder_info_record (cdb, record, ex);
+	g_free (record->folder_name);
 	g_free (record->bdata);
 	g_free (record);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]