[tacds@localhost Debug]$ valgrind --leak-check=full --show-leak-kinds=all ./SaxonCMemoryTest
==4650== Memcheck, a memory error detector
==4650== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==4650== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info
==4650== Command: ./SaxonCMemoryTest
==4650==
Original XML:
Transformed XML:
==4650==
==4650== HEAP SUMMARY:
==4650== in use at exit: 49,809 bytes in 5 blocks
==4650== total heap usage: 82 allocs, 77 frees, 184,714 bytes allocated
==4650==
==4650== 17 bytes in 1 blocks are definitely lost in loss record 1 of 5
==4650== at 0x484478B: malloc (vg_replace_malloc.c:446)
==4650== by 0xAA223BE: strdup (in /usr/lib64/libc.so.6)
==4650== by 0x6E3AE53: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0x6E3AEF5: findJavaTZ_md (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0x5AD1E8E: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xF65B34F: ???
==4650== by 0x4F60C5C: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xF65B387: ???
==4650== by 0x4F6158E: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xF65B34F: ???
==4650== by 0x4F61764: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xCA5A787: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650==
==4650== 24 bytes in 1 blocks are still reachable in loss record 2 of 5
==4650== at 0x4844EF1: operator new(unsigned long) (vg_replace_malloc.c:487)
==4650== by 0x488BF57: SaxonProcessor::initialize(bool) (SaxonProcessor.cpp:244)
==4650== by 0x488BE79: SaxonProcessor::SaxonProcessor(bool) (SaxonProcessor.cpp:234)
==4650== by 0x4012F1: main (SaxonCMemoryTest.cpp:48)
==4650==
==4650== 288 bytes in 1 blocks are possibly lost in loss record 3 of 5
==4650== at 0x484BFE0: calloc (vg_replace_malloc.c:1675)
==4650== by 0x4011AF2: UnknownInlinedFun (rtld-malloc.h:44)
==4650== by 0x4011AF2: allocate_dtv (dl-tls.c:401)
==4650== by 0x40125B1: _dl_allocate_tls (dl-tls.c:679)
==4650== by 0xAA10B54: pthread_create@@GLIBC_2.34 (in /usr/lib64/libc.so.6)
==4650== by 0x4F69093: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xD74D00F: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xFFFFFFEFFFFF: ???
==4650== by 0xDC2BB2F: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xD757BAF: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0xFFFFFFFFFFFE: ???
==4650== by 0x4F69080: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0x1FFEFFFC2F: ???
==4650==
==4650== 328 bytes in 1 blocks are still reachable in loss record 4 of 5
==4650== at 0x484BFE0: calloc (vg_replace_malloc.c:1675)
==4650== by 0x4F21BAF: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650==
==4650== 49,152 bytes in 1 blocks are still reachable in loss record 5 of 5
==4650== at 0x484BFE0: calloc (vg_replace_malloc.c:1675)
==4650== by 0x4C7009D: ??? (in /home/tacds/saxon-c-12.5/libsaxon-EEC-linux-amd64-v12.5.0/libs/nix/libsaxon-eec-12.5.0.so)
==4650== by 0x400551D: call_init (dl-init.c:70)
==4650== by 0x400551D: call_init (dl-init.c:26)
==4650== by 0x400560B: _dl_init (dl-init.c:117)
==4650== by 0x401D7F9: ??? (in /usr/lib64/ld-linux-x86-64.so.2)
==4650==
==4650== LEAK SUMMARY:
==4650== definitely lost: 17 bytes in 1 blocks
==4650== indirectly lost: 0 bytes in 0 blocks
==4650== possibly lost: 288 bytes in 1 blocks
==4650== still reachable: 49,504 bytes in 3 blocks
==4650== suppressed: 0 bytes in 0 blocks
==4650==
==4650== For lists of detected and suppressed errors, rerun with: -s
==4650== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
[tacds@localhost Debug]$