libgit2

git_odb_backend_data_free

Version:

Frees custom allocated ODB data. This should only be called when memory allocated using git_odb_backend_data_alloc is not returned to libgit2 because the backend encountered an error in the read function after allocation and did not return this data to libgit2.

Signature

void git_odb_backend_data_free(git_odb_backend *backend, void *data);

Parameters

In
backend

the ODB backend that is freeing this memory

void *
In
data

the buffer to free

Versions