libgit2

git_commit_close

Version:

Close an open commit

This is a wrapper around git_object_close()

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_close(git_commit *commit);

Parameters

In
commit

the commit to close

Versions