libgit2

git_tree_close

Version:

Close an open tree

This is a wrapper around git_object_close()

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_close(git_tree *tree);

Parameters

In
tree

the tree to close

Versions