4 memcheck ... ... ... ... ... ... memcheck ... ./xml1 RUNNING 0x........ ... InvalidRead Invalid read of size N 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... Address 0x........ is 0 bytes after a block of size 40 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... 0x........ ... UninitCondition Conditional jump or move depends on uninitialised value(s) 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... 0x........ ... UninitValue Use of uninitialised value of size N 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... 0x........ ... InvalidFree Invalid free() / delete / delete[] / realloc() 0x........ ... free ... vg_replace_malloc.c ... 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... Address 0x........ is 0 bytes inside a block of size 40 free'd 0x........ ... free ... vg_replace_malloc.c ... 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... 0x........ ... InvalidFree Invalid free() / delete / delete[] / realloc() 0x........ ... free ... vg_replace_malloc.c ... 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... Address 0x........ is on thread 1's stack in frame #1, created by frame3 (xml1.c:7) 0x........ ... SyscallParam Syscall param exit(status) contains uninitialised byte(s) FINISHED 0x........ ... Leak_DefinitelyLost 396 bytes in 1 blocks are definitely lost in loss record ... of ... 396 1 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... frame3 ... xml1.c ... 0x........ ... frame2 ... xml1.c ... 0x........ ... frame1 ... xml1.c ... 0x........ ... main ... xml1.c ... ... 0x........ ... 0x........ ... 0x........ ... 0x........ ... 0x........ ... 0x........ ...