Fix memleak, free TreeBuilder
Fix memleak for Config and parent commit objects
Merge pull request #47 from kron4eg/tree_builder_mem_leak

Fix memleak, TreeBuilder, Config and Parent commit