1 ... ... ... ... ... ... ... ... memcheck ./xml1 RUNNING 0x........ ... InvalidRead Invalid read of size 4 0x........ ... frame3 xml1.c 11 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 Address 0x........ is 0 bytes after a block of size 40 alloc'd 0x........ ... malloc vg_replace_malloc.c 214 0x........ ... frame3 xml1.c 8 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 0x........ ... UninitCondition Conditional jump or move depends on uninitialised value(s) 0x........ ... frame3 xml1.c 14 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 0x........ ... UninitValue Use of uninitialised value of size 4 0x........ ... frame3 xml1.c 21 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 0x........ ... InvalidFree Invalid free() / delete / delete[] 0x........ ... free vg_replace_malloc.c 300 0x........ ... frame3 xml1.c 25 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 Address 0x........ is 0 bytes inside a block of size 40 free'd 0x........ ... free vg_replace_malloc.c 300 0x........ ... frame3 xml1.c 24 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 0x........ ... InvalidFree Invalid free() / delete / delete[] 0x........ ... free vg_replace_malloc.c 300 0x........ ... frame3 xml1.c 28 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49 Address 0x........ is on thread 1's stack 0x........ ... SyscallParam Syscall param exit_group(exit_code) contains uninitialised byte(s) 0x........ ... _Exit 0x........ ... __libc_start_main 0x........ ... start.S 102 1 0x........ 1 0x........ 1 0x........ 1 0x........ 1 0x........ 1 0x........ FINISHED 16 Ugly strchr error in /lib/ld-2.3.2.so 0x........ ... Leak_DefinitelyLost 396 bytes in 1 blocks are definitely lost in loss record 1 of 1 396 1 0x........ ... malloc vg_replace_malloc.c 214 0x........ ... frame3 xml1.c 31 0x........ ... frame2 xml1.c 39 0x........ ... frame1 xml1.c 44 0x........ ... main xml1.c 49