Always initialize tree node size and offset
Fix memory leaks