libgit2

git_tree_free

Version:

Close an open tree

This is a wrapper around git_object_free()

IMPORTANT: It is necessary to call this method when you stop using a tree. Failure to do so will cause a memory leak.

Signature

void git_tree_free(git_tree *tree);

Parameters

In
tree

the tree to close

Versions