Close an open object
This method instructs the library to close an existing object; note that git_objects are owned by the repository and are reference counted, so the object may or may not be freed after this library call, depending on whether any other objects still depend on it.
IMPORTANT: It is not necessary to call this method when you stop using an object, since all object memory is automatically reclaimed by the repository when it is freed.
Forgetting to call git_object_close
does not cause memory
leaks, but it's is recommended to close as soon as possible
the biggest objects (e.g. blobs) to prevent wasting memory
space.