libgit2

git_tree_free

Version:

Close an open tree

You can no longer use the git_tree pointer after this call.

IMPORTANT: You MUST call this method when you stop using a tree to release memory. 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