libgit2

git_commit_graph_free

Version:

Frees commit-graph data. This should only be called when memory allocated using git_commit_graph_open is not returned to libgit2 because it was not associated with the ODB through a successful call to git_odb_set_commit_graph.

Signature

void git_commit_graph_free(git_commit_graph *cgraph);

Parameters

In
cgraph

the commit-graph object to free. If NULL, no action is taken.

Versions