git_buf_dispose

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.

extern (C) nothrow @nogc
void
git_buf_dispose

Parameters

buffer .git_buf*

The buffer to deallocate

Meta