libgit2

git_object_free

Version:

Free a reference to one of the objects in the repository.

Repository objects are managed automatically by the library, but this method can be used to force freeing one of the objects.

Careful: freeing objects in the middle of a repository traversal will most likely cause errors.

Signature

void git_object_free(git_object *object);

Parameters

git_object *
In
object

the object to free

Versions