Hi

I have a small app using libxml api’s , To find out the memory leak in my app , I ran valgrind.

I have attached the leaks found. Please have a look and it would be nice if some one can help me out to proceed further.

Thanks

 

==31136== Memcheck, a memory error detector.
==31136== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==31136== Using LibVEX rev 1606, a library for dynamic binary translation.
==31136== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==31136== Using valgrind-3.2.0, a dynamic binary instrumentation framework.
==31136== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==31136== 
--31136-- Command line
--31136--    ./schemaAutomata
--31136--    idcAll.xsd
--31136--    2
--31136-- Startup, with flags:
--31136--    -v
--31136--    --leak-check=full
--31136--    --show-reachable=yes
--31136-- Contents of /proc/version:
--31136--   Linux version 2.4.20-8 ([EMAIL PROTECTED]) (gcc version 3.2.2 
20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003
--31136-- Arch and hwcaps: X86, x86-sse1-sse2
--31136-- Valgrind library directory: /usr/local/lib/valgrind
--31136-- Reading syms from /lib/ld-2.3.2.so (0x4000000)
--31136-- Reading syms from /feprojects/vidhya/LIBXML/Automata/schemaAutomata 
(0x8048000)
--31136-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck 
(0x38000000)
--31136--    object doesn't have a dynamic symbol table
--31136-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
--31136-- REDIR: 0x40114B0 (index) redirected to 0x38020BD7 
(vgPlain_x86_linux_REDIR_FOR_index)
--31136-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_core.so 
(0x4017000)
--31136-- Reading syms from 
/usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4019000)
==31136== WARNING: new redirection conflicts with existing -- ignoring it
--31136--     new: 0x040114B0 (index     ) R-> 0x0401C16C index
--31136-- REDIR: 0x4011650 (strlen) redirected to 0x401C3C0 (strlen)
--31136-- Reading syms from /usr/local/lib/libxml2.so.2.6.24 (0x401E000)
--31136-- Reading syms from /usr/lib/libz.so.1.1.4 (0x414D000)
--31136--    object doesn't have a symbol table
--31136-- Reading syms from /lib/libpthread-0.10.so (0x415B000)
--31136-- Reading syms from /lib/libm-2.3.2.so (0x41AE000)
--31136-- Reading syms from /lib/libc-2.3.2.so (0x41D0000)
--31136-- Reading syms from /lib/libdl-2.3.2.so (0x4309000)
--31136-- REDIR: 0x424BAB0 (memset) redirected to 0x401CB54 (memset)
--31136-- REDIR: 0x424A490 (rindex) redirected to 0x401C094 (rindex)
--31136-- REDIR: 0x4242D30 (malloc) redirected to 0x401A620 (malloc)
--31136-- REDIR: 0x424A160 (strlen) redirected to 0x401C3A4 (strlen)
--31136-- REDIR: 0x42499D0 (strcpy) redirected to 0x401C3F8 (strcpy)
--31136-- REDIR: 0x4243520 (calloc) redirected to 0x401BA47 (calloc)
--31136-- REDIR: 0x424C0C0 (memcpy) redirected to 0x401C738 (memcpy)
--31136-- REDIR: 0x424A340 (strncmp) redirected to 0x401C600 (strncmp)
--31136-- REDIR: 0x424A400 (strncpy) redirected to 0x401C4C8 (strncpy)
--31136-- REDIR: 0x4242EF0 (free) redirected to 0x401B1D7 (free)
--31136-- REDIR: 0x4242FB0 (realloc) redirected to 0x401BAFC (realloc)
--31136-- REDIR: 0x4248C10 (strcat) redirected to 0x401C1B4 (strcat)
--31136-- supp:   23 Ubuntu-stripped-ld.so
==31136== 
==31136== IN SUMMARY: 1 errors from 1 contexts (suppressed: 23 from 1)
==31136== 
==31136== malloc/free: in use at exit: 5,740 bytes in 51 blocks.
==31136== malloc/free: 360 allocs, 309 frees, 92,926 bytes allocated.
==31136== 
==31136== searching for pointers to 51 not-freed blocks.
==31136== checked 376,896 bytes.
==31136== 
==31136== 
==31136== 16 bytes in 1 blocks are indirectly lost in loss record 1 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40904CB: xmlRegAtomPush (xmlregexp.c:1201)
==31136==    by 0x4095BF6: xmlAutomataNewOnceTrans2 (xmlregexp.c:5864)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 16 bytes in 1 blocks are indirectly lost in loss record 2 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4090867: xmlRegStatePush (xmlregexp.c:1337)
==31136==    by 0x40953B7: xmlNewAutomata (xmlregexp.c:5419)
==31136==    by 0x407FCB9: xmlSchemaBuildContentModel (xmlschemas.c:13570)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 16 bytes in 1 blocks are indirectly lost in loss record 3 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4050E07: xmlDictLookup (dict.c:648)
==31136==    by 0x407207C: xmlSchemaGetNodeContent (xmlschemas.c:4656)
==31136==    by 0x4073C85: xmlSchemaPValAttrNode (xmlschemas.c:6325)
==31136==    by 0x407764A: xmlSchemaParseElement (xmlschemas.c:8573)
==31136==    by 0x407BEEB: xmlSchemaParseModelGroup (xmlschemas.c:11260)
==31136==    by 0x407DAEF: xmlSchemaParseComplexType (xmlschemas.c:12284)
==31136==    by 0x4077BC9: xmlSchemaParseElement (xmlschemas.c:8748)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136== 
==31136== 
==31136== 20 bytes in 1 blocks are indirectly lost in loss record 4 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4072EAF: xmlSchemaAddModelGroup (xmlschemas.c:5452)
==31136==    by 0x407B7DB: xmlSchemaParseModelGroup (xmlschemas.c:11185)
==31136==    by 0x407DAEF: xmlSchemaParseComplexType (xmlschemas.c:12284)
==31136==    by 0x4077BC9: xmlSchemaParseElement (xmlschemas.c:8748)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 28 bytes in 1 blocks are indirectly lost in loss record 5 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40508A6: xmlDictCreate (dict.c:330)
==31136==    by 0x407DFE2: xmlSchemaNewDocParserCtxt (xmlschemas.c:12466)
==31136==    by 0x80485BD: print_Ctxtautomata (schemaAutomata.c:14)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 32 bytes in 1 blocks are indirectly lost in loss record 6 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40903F3: xmlRegGetCounter (xmlregexp.c:1169)
==31136==    by 0x4095BB0: xmlAutomataNewOnceTrans2 (xmlregexp.c:5854)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 32 bytes in 2 blocks are indirectly lost in loss record 7 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40DA518: xmlHashCreate (hash.c:151)
==31136==    by 0x40DA5A7: xmlHashCreateDict (hash.c:179)
==31136==    by 0x4070B35: xmlSchemaBucketCreate (xmlschemas.c:3610)
==31136==    by 0x407A85C: xmlSchemaAddSchemaDoc (xmlschemas.c:10603)
==31136==    by 0x4087648: xmlSchemaParse (xmlschemas.c:21665)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 36 bytes in 1 blocks are indirectly lost in loss record 8 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4079F6E: xmlSchemaConstructionCtxtCreate (xmlschemas.c:9890)
==31136==    by 0x408760E: xmlSchemaParse (xmlschemas.c:21655)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 52 bytes in 1 blocks are indirectly lost in loss record 9 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x408EF1A: xmlRegEpxFromParse (xmlregexp.c:416)
==31136==    by 0x407FD34: xmlSchemaBuildContentModel (xmlschemas.c:13591)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 56 bytes in 1 blocks are indirectly lost in loss record 10 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4070A2D: xmlSchemaBucketCreate (xmlschemas.c:3542)
==31136==    by 0x407A85C: xmlSchemaAddSchemaDoc (xmlschemas.c:10603)
==31136==    by 0x4087648: xmlSchemaParse (xmlschemas.c:21665)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 60 bytes in 2 blocks are indirectly lost in loss record 11 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x407066B: xmlSchemaItemListAddSize (xmlschemas.c:3350)
==31136==    by 0x4070C2F: xmlSchemaAddItemSize (xmlschemas.c:3665)
==31136==    by 0x4072C3C: xmlSchemaAddElement (xmlschemas.c:5325)
==31136==    by 0x4077680: xmlSchemaParseElement (xmlschemas.c:8597)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 60 bytes in 5 blocks are indirectly lost in loss record 12 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40704F4: xmlSchemaItemListCreate (xmlschemas.c:3296)
==31136==    by 0x407A04D: xmlSchemaParserCtxtCreate (xmlschemas.c:9931)
==31136==    by 0x407DFD2: xmlSchemaNewDocParserCtxt (xmlschemas.c:12462)
==31136==    by 0x80485BD: print_Ctxtautomata (schemaAutomata.c:14)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 64 bytes in 2 blocks are indirectly lost in loss record 13 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40905A7: xmlRegStateAddTransTo (xmlregexp.c:1230)
==31136==    by 0x4095BE8: xmlAutomataNewOnceTrans2 (xmlregexp.c:5863)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 80 bytes in 2 blocks are indirectly lost in loss record 14 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x408F85D: xmlRegNewState (xmlregexp.c:785)
==31136==    by 0x4095385: xmlNewAutomata (xmlregexp.c:5413)
==31136==    by 0x407FCB9: xmlSchemaBuildContentModel (xmlschemas.c:13570)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 80 bytes in 1 blocks are indirectly lost in loss record 15 of 28
==31136==    at 0x401BBBA: realloc (vg_replace_malloc.c:306)
==31136==    by 0x40706D7: xmlSchemaItemListAddSize (xmlschemas.c:3359)
==31136==    by 0x4070C2F: xmlSchemaAddItemSize (xmlschemas.c:3665)
==31136==    by 0x4072C3C: xmlSchemaAddElement (xmlschemas.c:5325)
==31136==    by 0x4077680: xmlSchemaParseElement (xmlschemas.c:8597)
==31136==    by 0x407BEEB: xmlSchemaParseModelGroup (xmlschemas.c:11260)
==31136==    by 0x407DAEF: xmlSchemaParseComplexType (xmlschemas.c:12284)
==31136==    by 0x4077BC9: xmlSchemaParseElement (xmlschemas.c:8748)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136== 
==31136== 
==31136== 80 bytes in 1 blocks are indirectly lost in loss record 16 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x407060C: xmlSchemaItemListAdd (xmlschemas.c:3321)
==31136==    by 0x4070AE2: xmlSchemaBucketCreate (xmlschemas.c:3652)
==31136==    by 0x407A85C: xmlSchemaAddSchemaDoc (xmlschemas.c:10603)
==31136==    by 0x4087648: xmlSchemaParse (xmlschemas.c:21665)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 84 bytes in 1 blocks are indirectly lost in loss record 17 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4070405: xmlSchemaNewSchema (xmlschemas.c:3234)
==31136==    by 0x40875EF: xmlSchemaParse (xmlschemas.c:21648)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 84 bytes in 1 blocks are indirectly lost in loss record 18 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x409AF26: xmlNewRMutex (threads.c:287)
==31136==    by 0x40508EE: xmlDictCreate (dict.c:340)
==31136==    by 0x407DFE2: xmlSchemaNewDocParserCtxt (xmlschemas.c:12466)
==31136==    by 0x80485BD: print_Ctxtautomata (schemaAutomata.c:14)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 100 bytes in 4 blocks are indirectly lost in loss record 19 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4095C60: xmlAutomataNewOnceTrans2 (xmlregexp.c:5835)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 120 bytes in 1 blocks are indirectly lost in loss record 20 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4072CB7: xmlSchemaAddType (xmlschemas.c:5355)
==31136==    by 0x407DEE8: xmlSchemaParseComplexType (xmlschemas.c:12102)
==31136==    by 0x4077BC9: xmlSchemaParseElement (xmlschemas.c:8748)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 5,740 (132 direct, 5,608 indirect) bytes in 1 blocks are definitely 
lost in loss record 21 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x407A028: xmlSchemaParserCtxtCreate (xmlschemas.c:9923)
==31136==    by 0x407DFD2: xmlSchemaNewDocParserCtxt (xmlschemas.c:12462)
==31136==    by 0x80485BD: print_Ctxtautomata (schemaAutomata.c:14)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 140 bytes in 5 blocks are indirectly lost in loss record 22 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4072F5A: xmlSchemaAddParticle (xmlschemas.c:5494)
==31136==    by 0x407B86B: xmlSchemaParseModelGroup (xmlschemas.c:11203)
==31136==    by 0x407DAEF: xmlSchemaParseComplexType (xmlschemas.c:12284)
==31136==    by 0x4077BC9: xmlSchemaParseElement (xmlschemas.c:8748)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 160 bytes in 1 blocks are indirectly lost in loss record 23 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4090723: xmlRegStateAddTrans (xmlregexp.c:1290)
==31136==    by 0x4095BE8: xmlAutomataNewOnceTrans2 (xmlregexp.c:5863)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 240 bytes in 4 blocks are indirectly lost in loss record 24 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x408F719: xmlRegNewAtom (xmlregexp.c:742)
==31136==    by 0x4095B56: xmlAutomataNewOnceTrans2 (xmlregexp.c:5823)
==31136==    by 0x407F905: xmlSchemaBuildAContentModel (xmlschemas.c:13410)
==31136==    by 0x407FCFB: xmlSchemaBuildContentModel (xmlschemas.c:13582)
==31136==    by 0x408717D: xmlSchemaFixupComponents (xmlschemas.c:21564)
==31136==    by 0x408771A: xmlSchemaParse (xmlschemas.c:21698)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 360 bytes in 2 blocks are indirectly lost in loss record 25 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40DA548: xmlHashCreate (hash.c:156)
==31136==    by 0x40DA5A7: xmlHashCreateDict (hash.c:179)
==31136==    by 0x4070B35: xmlSchemaBucketCreate (xmlschemas.c:3610)
==31136==    by 0x407A85C: xmlSchemaAddSchemaDoc (xmlschemas.c:10603)
==31136==    by 0x4087648: xmlSchemaParse (xmlschemas.c:21665)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 520 bytes in 5 blocks are indirectly lost in loss record 26 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x4072BF3: xmlSchemaAddElement (xmlschemas.c:5313)
==31136==    by 0x4077680: xmlSchemaParseElement (xmlschemas.c:8597)
==31136==    by 0x4079C98: xmlSchemaParseSchemaTopLevel (xmlschemas.c:9783)
==31136==    by 0x407A312: xmlSchemaParseNewDocWithContext (xmlschemas.c:10121)
==31136==    by 0x40876EC: xmlSchemaParse (xmlschemas.c:21688)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 1,024 bytes in 1 blocks are indirectly lost in loss record 27 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40504FF: xmlDictAddString (dict.c:148)
==31136==    by 0x4050DE8: xmlDictLookup (dict.c:642)
==31136==    by 0x407A8CC: xmlSchemaAddSchemaDoc (xmlschemas.c:10484)
==31136==    by 0x4087648: xmlSchemaParse (xmlschemas.c:21665)
==31136==    by 0x80485CE: print_Ctxtautomata (schemaAutomata.c:16)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== 
==31136== 2,048 bytes in 1 blocks are indirectly lost in loss record 28 of 28
==31136==    at 0x401A6A2: malloc (vg_replace_malloc.c:149)
==31136==    by 0x40508D1: xmlDictCreate (dict.c:336)
==31136==    by 0x407DFE2: xmlSchemaNewDocParserCtxt (xmlschemas.c:12466)
==31136==    by 0x80485BD: print_Ctxtautomata (schemaAutomata.c:14)
==31136==    by 0x8048612: main (schemaAutomata.c:31)
==31136== 
==31136== LEAK SUMMARY:
==31136==    definitely lost: 132 bytes in 1 blocks.
==31136==    indirectly lost: 5,608 bytes in 50 blocks.
==31136==      possibly lost: 0 bytes in 0 blocks.
==31136==    still reachable: 0 bytes in 0 blocks.
==31136==         suppressed: 0 bytes in 0 blocks.
--31136--  memcheck: sanity checks: 1 cheap, 1 expensive
--31136--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--31136--  memcheck: auxmaps: 0 searches, 0 comparisons
--31136--  memcheck: SMs: n_issued      = 14 (224k, 0M)
--31136--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--31136--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--31136--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--31136--  memcheck: SMs: max_defined   = 44 (704k, 0M)
--31136--  memcheck: SMs: max_non_DSM   = 14 (224k, 0M)
--31136--  memcheck: max sec V bit nodes:    4 (0k, 0M)
--31136--  memcheck: set_sec_vbits8 calls: 18 (new: 4, updates: 14)
--31136--  memcheck: max shadow mem size:   528k, 0M
--31136-- translate:            fast SP updates identified: 8,828 ( 88.5%)
--31136-- translate:   generic_known SP updates identified: 336 (  3.3%)
--31136-- translate: generic_unknown SP updates identified: 810 (  8.1%)
--31136--     tt/tc: 12,939 tt lookups requiring 13,543 probes
--31136--     tt/tc: 12,939 fast-cache updates, 3 flushes
--31136--  transtab: new        6,177 (116,428 -> 2,046,190; ratio 175:10) [0 
scs]
--31136--  transtab: dumped     0 (0 -> ??)
--31136--  transtab: discarded  8 (193 -> ??)
--31136-- scheduler: 175,699 jumps (bb entries).
--31136-- scheduler: 1/7,572 major/minor sched events.
--31136--    sanity: 2 cheap, 1 expensive checks.
--31136--    exectx: 30,011 lists, 437 contexts (avg 0 per list)
--31136--    exectx: 693 searches, 257 full compares (370 per 1000)
--31136--    exectx: 469 cmp2, 59 cmp4, 0 cmpAll
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to