libgit2

git_buf_free

Version:

Free the memory referred to by the git_buf.

Note that this does not free the git_buf itself, just the memory pointed to by buffer->ptr. This will not free the memory if it looks like it was not allocated internally, but it will clear the buffer back to the empty state.

Signature

void git_buf_free(git_buf *buffer);

Parameters

In
buffer

The buffer to deallocate

Versions