libgit2

git_commitarray_dispose

Version:

Free the commits contained in a commit array. This method should be called on git_commitarray objects that were provided by the library. Not doing so will result in a memory leak.

This does not free the git_commitarray itself, since the library will never allocate that object directly itself.

Signature

void git_commitarray_dispose(git_commitarray *array);

Parameters

In
array

The git_commitarray that contains commits to free

Versions