[Users] [Bug 3147] New: verify_folderlist_xml() leaks memory

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Sun Apr 20 11:57:52 CEST 2014


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3147

            Bug ID: 3147
           Summary: verify_folderlist_xml() leaks memory
    Classification: Unclassified
           Product: Claws Mail
           Version: 3.9.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: UI/Folder List
          Assignee: users at lists.claws-mail.org
          Reporter: deweloper at wp.pl

verify_folderlist_xml() calls xml_parse_file(filename).
Shouldn't it call xml_free_tree(node) then? (if node != NULL)

==00:00:40:59.014 2967== 50,398 (20 direct, 50,378 indirect) bytes in 1 blocks
are definitely lost in loss record 20,511 of 20,554
==00:00:40:59.014 2967==    at 0x4006B11: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==00:00:40:59.014 2967==    by 0x4806B4B1: g_malloc (gmem.c:104)
==00:00:40:59.014 2967==    by 0x480827E4: g_slice_alloc (gslice.c:1016)
==00:00:40:59.014 2967==    by 0x48082CFD: g_slice_alloc0 (gslice.c:1042)
==00:00:40:59.014 2967==    by 0x4806DEAB: g_node_new (gnode.c:111)
==00:00:40:59.014 2967==    by 0x8256441: xml_build_tree (xml.c:139)
==00:00:40:59.014 2967==    by 0x82564BA: xml_parse_file (xml.c:160)
==00:00:40:59.014 2967==    by 0x80C357A: verify_folderlist_xml
(file_checker.c:92)
==00:00:40:59.014 2967==    by 0x80C3738: check_file_integrity
(file_checker.c:46)
==00:00:40:59.014 2967==    by 0x80817C5: main (main.c:1281)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list