Thanks to visit codestin.com Credit goes to libgit2.org
Free a tree builder
This will clear all the entries and free to builder. Failing to free the builder after you're done using it will result in a memory leak
Builder to free