read and read_prefix each return to libgit2 a buffer which will be freed later. The buffer should be allocated using the function git_odb_backend_data_alloc to ensure that libgit2 can safely free it later.
See Implementation
read and read_prefix each return to libgit2 a buffer which will be freed later. The buffer should be allocated using the function git_odb_backend_data_alloc to ensure that libgit2 can safely free it later.