libgit2

git_commit_free

Version:

Close an open commit

This is a wrapper around git_object_free()

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

Signature

void git_commit_free(git_commit *commit);

Parameters

In
commit

the commit to close

Versions