The essence of the question is simple. What methods / tools are there to determine that our memory has leaked?
ANSI C.
For Unix-like OS
x64-86
I used Hans Boehm garbage collector , but it either does not work with Linux x64, or I use it crookedly all the time - it produces 65536 on GC_get__heap_size ().
crtdbg is not suitable due to MSVS binding.
Initially, it was the task to determine if I was deleting the tree correctly, but it turned into this question.