summaryrefslogtreecommitdiff
path: root/include/git2/sys/config.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-02-23 18:42:53 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-02-23 18:42:53 +0000
commit459ac856d94d4a59ee47b2807aa8e4b029499582 (patch)
tree474ddd7cd35c6a832eb6bcf97f410f1f6fb1345e /include/git2/sys/config.h
parent790aae778df9bf4809e3c1e772d4d948c1cc2aa3 (diff)
downloadlibgit2-ethomson/odb_backend_allocations.tar.gz
odb: provide a free function for custom backendsethomson/odb_backend_allocations
Custom backends can allocate memory when reading objects and providing them to libgit2. However, if an error occurs in the custom backend after the memory has been allocated for the custom object but before it's returned to libgit2, the custom backend has no way to free that memory and it must be leaked. Provide a free function that corresponds to the alloc function so that custom backends have an opportunity to free memory before they return an error.
Diffstat (limited to 'include/git2/sys/config.h')
0 files changed, 0 insertions, 0 deletions